/* ==========================================================================
   TRON ENERGY — Global Stylesheet
   Premium dark Web3 theme. Red + electric-blue accents.
   ========================================================================== */

:root {
  --bg: #07090f;
  --bg-alt: #0c0f18;
  --surface: #11151f;
  --surface-2: #161b27;
  --border: #232a3a;
  --border-soft: #1b212e;

  --text: #e9edf6;
  --text-muted: #9aa6bd;
  --text-dim: #6b7689;

  --red: #ff2d4f;
  --red-soft: #ff5e78;
  --blue: #18b6ff;
  --blue-soft: #5fd0ff;

  --accent-grad: linear-gradient(135deg, #ff2d4f 0%, #18b6ff 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(255,45,79,0.16) 0%, rgba(24,182,255,0.16) 100%);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 45, 79, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 90% -4%, rgba(24, 182, 255, 0.12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--blue);
}

h1, h2, h3, h4 {
  line-height: 1.22;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #04121c;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand:hover { color: #fff; }

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 0;
}

.brand .brand-name {
  font-size: 1.16rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 46px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 45, 79, 0.22);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 182, 255, 0.30);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ============================ Hero ============================ */
.hero {
  text-align: center;
  padding: 72px 0 60px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(255, 45, 79, 0.20),
              0 0 0 1px var(--border);
}

.hero h1 {
  margin-bottom: 14px;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text);
  font-weight: 600;
  max-width: 760px;
  margin: 0 auto 18px;
}

.hero .lead {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ============================ Sections ============================ */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================ Cards Grid ============================ */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #2e3753;
  box-shadow: var(--shadow);
}

.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
  color: #fff;
}
.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: #2e3753;
  box-shadow: var(--shadow);
}
.article-card .tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}
.article-card h3 a { color: #fff; }
.article-card h3 a:hover { color: var(--blue-soft); }
.article-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  flex-grow: 1;
}
.article-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}
.article-card .meta time { color: var(--text-dim); }
.article-card .meta a {
  font-weight: 700;
  color: var(--blue-soft);
}

/* ============================ Callout / Notice boxes ============================ */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.notice.warn {
  border-left-color: var(--red);
}
.notice h3 { margin-bottom: 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice .notice-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 6px;
}
.notice.warn .notice-label { color: var(--red-soft); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px;
}

/* ============================ Article / prose ============================ */
.page-hero {
  padding: 56px 0 8px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 20px;
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.article-header .tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 14px;
  display: block;
}
.article-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}
.article-meta {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.article-meta span { color: var(--text-muted); }

.prose {
  font-size: 1.06rem;
}
.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-top: 0.2em;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
  color: #fff;
}
.prose p,
.prose li {
  color: var(--text);
}
.prose ul li::marker {
  color: var(--red);
}
.prose strong { color: #fff; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--blue);
  color: var(--text-muted);
  font-style: italic;
}

.key-points {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 30px;
}
.key-points h2 {
  margin-top: 0 !important;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-soft);
}
.key-points ul { margin-bottom: 0; }

.article-footer-nav {
  max-width: 760px;
  margin: 30px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ============================ Contact form ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.95rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.18s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
}
.form-field textarea { min-height: 150px; resize: vertical; }

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.contact-detail .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
}
.contact-detail a { font-size: 1.1rem; font-weight: 600; }

/* ============================ Footer ============================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: 52px 0 28px;
  margin-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 360px;
}
.footer-brand .footer-contact {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.96rem;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-bottom .copyright {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-bottom .footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.86rem;
  max-width: 860px;
  line-height: 1.6;
}

/* ============================ Misc ============================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-cta {
  text-align: center;
  margin-top: 36px;
}

.disclaimer-band {
  background: var(--accent-grad-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.disclaimer-band .container {
  max-width: 820px;
  text-align: center;
}
.disclaimer-band p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-soft); }

/* ============================ Responsive ============================ */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    transform: translateY(-150%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }

  .hero { padding: 50px 0 44px; }
  .section { padding: 44px 0; }
}

@media (max-width: 540px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
