/* === FONTS (local woff2) === */
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/uU9NCBsR6Z2vfE9aq3bh3dSD.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/uU9NCBsR6Z2vfE9aq3bh3dSD.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nKKZ-Go6G5tXcraBGwCYdA.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr5KPxWzVaF5NQ.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr4uPhWzVaF5NQ.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr4yPRWzVaF5NQ.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nKKZ-Go6G5tXcraVGwA.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr5KPxWnVaE.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr4uPhWnVaE.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nKKU-Go6G5tXcr4yPRWnVaE.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/DtVmJx26TKEr37c9YL5rik8s6zDX.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/DtVjJx26TKEr37c9aAFJn2QN.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/DtVmJx26TKEr37c9YMptik8s6zDX.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/DtVmJx26TKEr37c9YL5rilss6w.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/DtVjJx26TKEr37c9aBVJnw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/DtVmJx26TKEr37c9YMptilss6w.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080810; --bg2: #0d0d1a; --surface: #111122;
  --border: #1e1e3a; --text: #c8c8e0; --muted: #666688;
  --accent: #7dd3fc; --volt: #facc15; --volt2: #fb923c;
  --purple: #a78bfa; --green: #4ade80; --white: #f0f0ff;
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  --font-code: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 400; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(8,8,16,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: 0.03em; }
.nav-logo span { color: var(--volt); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-family: var(--font-body); color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* === SHARED === */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-family: var(--font-code); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--volt); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); line-height: 1.2; margin-bottom: 0.5rem; }
.section-sub { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); margin-bottom: 3rem; line-height: 1.7; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(250,204,21,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(167,139,250,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(125,211,252,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(250,204,21,0.1); border: 1px solid rgba(250,204,21,0.25);
  color: var(--volt); padding: 0.3rem 0.9rem; border-radius: 99px;
  font-family: var(--font-code); font-size: 0.78rem; margin-bottom: 2rem; letter-spacing: 0.04em;
}
.hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.8rem, 7vw, 5.5rem); color: var(--white); line-height: 1.1; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.hero h1 .volt-word { color: var(--volt); }
.hero-en { font-family: var(--font-body); font-weight: 300; font-size: clamp(1rem, 2.5vw, 1.35rem); color: var(--muted); margin-bottom: 1.75rem; }
.hero-desc { max-width: 620px; font-size: 1.05rem; color: var(--text); line-height: 1.9; margin-bottom: 3rem; }
.hero-desc .en { font-family: var(--font-body); font-weight: 300; color: var(--muted); font-size: 0.88rem; margin-top: 0.75rem; display: block; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-secondary { font-family: var(--font-body); border: 1px solid var(--border); color: var(--text); padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none; font-size: 1rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-family: var(--font-code); font-size: 0.72rem; text-align: center; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* === PHILOSOPHY === */
.philosophy { background: linear-gradient(135deg, rgba(250,204,21,0.03) 0%, rgba(167,139,250,0.03) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.philosophy-mission { text-align: center; margin-bottom: 4rem; }
.philosophy-mission blockquote { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3.2rem); color: var(--white); line-height: 1.2; border: none; padding: 0; }
.philosophy-mission blockquote em { color: var(--volt); font-style: normal; }
.philosophy-mission p { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.principle-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; position: relative; overflow: hidden; transition: border-color 0.25s; }
.principle-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--volt), var(--purple)); opacity: 0; transition: opacity 0.25s; }
.principle-card:hover { border-color: rgba(250,204,21,0.3); }
.principle-card:hover::before { opacity: 1; }
.principle-num { font-family: var(--font-code); font-size: 0.72rem; color: var(--volt); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.principle-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 0.5rem; }
.principle-desc { font-family: var(--font-body); font-size: 0.86rem; color: var(--muted); line-height: 1.8; }

/* === WHAT IS ORACLE === */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table th { font-family: var(--font-code); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(30,30,58,0.5); font-family: var(--font-body); line-height: 1.6; }
.compare-table td:first-child { color: var(--muted); }
.compare-table td:last-child { color: var(--green); font-weight: 600; }
.what-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 0.5rem; }
.what-point { display: flex; gap: 1rem; }
.what-point-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.what-point-title { font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.what-point-desc { font-family: var(--font-body); color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

/* === FLEET === */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.oracle-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem 1.25rem; transition: all 0.25s; cursor: default; }
.oracle-card:hover { border-color: var(--volt); transform: translateY(-3px); background: #141428; box-shadow: 0 8px 24px rgba(250,204,21,0.06); }
.oracle-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.oracle-name { font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 1rem; margin-bottom: 0.25rem; }
.oracle-role { font-family: var(--font-body); color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* === USE CASES === */
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.usecase-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; transition: border-color 0.25s; }
.usecase-card:hover { border-color: rgba(125,211,252,0.3); }
.usecase-scenario { font-family: var(--font-code); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 1rem; }
.usecase-title { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1rem; margin-bottom: 0.75rem; }
.usecase-flow { display: flex; flex-direction: column; gap: 0.5rem; }
.usecase-step { display: flex; align-items: flex-start; gap: 0.75rem; font-family: var(--font-body); font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.usecase-step-agent { font-family: var(--font-code); font-size: 0.78rem; color: var(--volt); white-space: nowrap; margin-top: 0.1rem; flex-shrink: 0; }

/* === SKILLS === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; transition: border-color 0.2s; }
.feature-card:hover { border-color: rgba(167,139,250,0.4); }
.feature-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-title { font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.feature-desc { font-family: var(--font-body); color: var(--muted); font-size: 0.88rem; line-height: 1.8; }

/* === HOW IT WORKS === */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.how-step { display: flex; gap: 1rem; align-items: flex-start; }
.how-step-num { font-family: var(--font-heading); font-weight: 700; color: var(--volt); font-size: 1.2rem; margin-top: 0.05rem; flex-shrink: 0; }
.how-step-title { font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.how-step-desc { font-family: var(--font-body); color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.terminal { font-family: var(--font-code); background: #0a0a14; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.terminal-bar { background: #111120; padding: 0.65rem 1rem; display: flex; gap: 0.5rem; align-items: center; border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-label { color: var(--muted); font-size: 0.72rem; margin-left: 0.5rem; }
.terminal-body { padding: 1.5rem; font-size: 0.84rem; line-height: 2; }
.t-prompt { color: var(--volt); } .t-cmd { color: var(--white); } .t-out { color: var(--green); }
.t-muted { color: var(--muted); } .t-accent { color: var(--accent); }

/* === GITHUB === */
.github-section { text-align: center; }
.github-card { display: inline-flex; flex-direction: column; align-items: center; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3rem 4rem; max-width: 600px; width: 100%; transition: border-color 0.25s; }
.github-card:hover { border-color: rgba(167,139,250,0.4); }
.github-icon { font-size: 2.5rem; }
.github-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.github-desc { font-family: var(--font-body); color: var(--muted); font-size: 0.9rem; line-height: 1.8; text-align: center; }
.github-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.tag { font-family: var(--font-code); font-size: 0.72rem; background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); color: var(--purple); padding: 0.25rem 0.6rem; border-radius: 99px; }
.github-link { font-family: var(--font-heading); font-weight: 600; border: 1px solid var(--border); color: var(--white); padding: 0.7rem 1.8rem; border-radius: 6px; text-decoration: none; font-size: 0.95rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.github-link:hover { border-color: var(--purple); color: var(--purple); }

/* === FOOTER === */
footer { padding: 2rem; text-align: center; color: var(--muted); font-family: var(--font-body); font-size: 0.82rem; border-top: 1px solid var(--border); line-height: 1.8; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .how-grid, .what-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .github-card { padding: 2rem 1.5rem; }
}
@media (max-width: 640px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; }
  .hero { padding-top: 6rem; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  section { padding: 4rem 1.25rem; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* === UTILITY === */
.how-intro { color: var(--muted); font-family: var(--font-body); font-size: 0.92rem; line-height: 1.9; margin-bottom: 0; }
.terminal-gap { margin-top: 0.5rem; }
.section-label--center { text-align: center; }
.github-center { display: flex; justify-content: center; margin-top: 1.5rem; }
.footer-sub { margin-top: 0.4rem; font-size: 0.75rem; }
