/* AGA Group — static rebuild stylesheet */

@import url('https://api.fontshare.com/v2/css?f[]=recoleta@400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0F1E;
  --bg-surface: #101627;
  --text-primary: #F5F6FA;
  --text-secondary: #A7AFC6;
  --border: rgba(167,175,198,0.18);
  --accent: #4F6EF7;
  --accent-hover: #3D5AE0;
  --card-bg: rgba(255,255,255,0.03);
  --card-shadow: 0 8px 24px rgba(0,0,0,0.25);
  --hover-shadow: 0 20px 25px -5px rgba(0,0,0,0.35), 0 8px 10px -6px rgba(0,0,0,0.25);
}

[data-theme="light"] {
  --bg: #F3F4F8;
  --bg-surface: #FFFFFF;
  --text-primary: #12131A;
  --text-secondary: #565B6E;
  --border: rgba(18,19,26,0.1);
  --accent: #4F6EF7;
  --accent-hover: #3D5AE0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 8px 24px rgba(18,19,26,0.08);
  --hover-shadow: 0 20px 25px -5px rgba(18,19,26,0.15), 0 8px 10px -6px rgba(18,19,26,0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .headline-font {
  font-family: 'Recoleta', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.section-title-lg {
  font-family: 'Recoleta', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.text-secondary { color: var(--text-secondary); }
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 20px;
}
.icon-badge .icon { width: 24px; height: 24px; color: var(--accent); }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 73px; width: auto; }
nav.nav-links { display: flex; gap: 28px; }
nav.nav-links a { font-size: 14px; color: var(--text-primary); font-weight: 400; }
nav.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease; font-family: 'Inter', sans-serif;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: #fff; opacity: 0;
  transition: opacity .2s ease; pointer-events: none;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15), 0 4px 6px -4px rgba(0,0,0,0.1); }
.btn:hover::after { opacity: .08; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 6px 12px; color: var(--text-secondary); }
.lang-switch a.active { background: var(--accent); color: #fff; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* Hero */
header#home {
  position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
}
.three-canvas-container { position: absolute; inset: 0; z-index: 0; }
.three-canvas-container canvas { display: block; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 40px 24px; }
.hero-content h1 { font-size: 52px; font-weight: 900; line-height: 1.08; }
.hero-content p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 560px; }
.hero-content .btn { margin-top: 32px; }

/* Inflection cards */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 36px; font-weight: 700; }
.section-head p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.card::before {
  content: ""; position: absolute; top: -3rem; right: -3rem; width: 12rem; height: 12rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent);
  filter: blur(60px); opacity: .5; transform: scale(1.1); transition: transform .7s ease, opacity .7s ease;
  pointer-events: none;
}
.grid-3 .card:hover, .card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--hover-shadow);
}
.grid-3 .card:hover::before, .card:hover::before { transform: scale(1.4); opacity: 1; }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }

/* Services (accordion + graphic) */
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tabs { display: flex; gap: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 10px 0; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-secondary); font-weight: 700; font-size: 16px; cursor: pointer; margin-bottom: -1px;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left;
}
.accordion-head h4 { font-size: 19px; font-weight: 700; color: var(--text-primary); }
.accordion-head .toggle-icon { color: var(--accent); font-size: 22px; line-height: 1; flex-shrink: 0; }
.accordion-body { display: none; padding: 0 0 24px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .toggle-icon { transform: rotate(45deg); }
.accordion-body .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; display: block; margin-bottom: 12px; }
.accordion-body ul { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.9; }
.service-visual {
  border: 1px dashed var(--border); border-radius: 20px; background: var(--card-bg);
  min-height: 420px; display: none; align-items: center; justify-content: center; box-shadow: var(--card-shadow);
}
.service-visual.active { display: flex; }
.service-visual svg { width: 300px; height: 300px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.process-step {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.process-step::before {
  content: ""; position: absolute; top: -3rem; right: -3rem; width: 12rem; height: 12rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent);
  filter: blur(60px); opacity: .5; transform: scale(1.1); transition: transform .7s ease, opacity .7s ease;
  pointer-events: none;
}
.process-grid .process-step:hover, .process-step:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  background-color: color-mix(in srgb, var(--accent) 4%, var(--card-bg));
  box-shadow: var(--hover-shadow);
}
.process-grid .process-step:hover::before, .process-step:hover::before { transform: scale(1.4); opacity: 1; }
.process-step .num { font-family: 'Inter', sans-serif; font-size: 60px; font-weight: 900; color: color-mix(in srgb, var(--accent) 50%, transparent); }
.process-step h3 { margin: 8px 0 6px; font-size: 20px; }
.process-step .duration { font-size: 16px; color: var(--text-secondary); font-weight: 700; text-transform: none; letter-spacing: normal; margin: 8px 0 0; display: block; }
.process-step p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-top: 16px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; margin-bottom: 64px; }
.stats-row .stat-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px 16px;
  box-shadow: var(--card-shadow);
}
.stats-row .num { font-family: 'Recoleta', serif; font-size: 48px; color: var(--accent); font-weight: 700; }
.stats-row .label { color: var(--text-primary); font-weight: 700; font-size: 16px; margin-top: 10px; }

.track-record-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 16px 40px;
  box-shadow: var(--card-shadow);
}
.track-record-card h3 { text-align: center; font-size: 20px; padding: 24px 0; }
.track-row { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--border); }
.track-row .icon { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.track-row .big { font-family: 'Inter', sans-serif; font-size: 30px; color: var(--accent); display: block; margin-bottom: 8px; font-weight: 700; }
.track-row h4 { font-size: 18px; margin: 0 0 8px; font-family: 'Inter', sans-serif; font-weight: 700; }
.track-row p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Ecosystem */
.ecosystem-bar { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; margin-top: 48px; }
.ecosystem-bar a {
  display: flex; align-items: center; justify-content: center;
  width: 148px; height: 56px; opacity: .85; transition: opacity .2s ease, transform .2s ease;
}
.ecosystem-bar a:hover { opacity: 1; transform: translateY(-2px); }
.ecosystem-bar img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.founder-photo-wrap { position: relative; padding-bottom: 40px; padding-right: 24px; }
.founder-photo-wrap img { border-radius: 20px; box-shadow: var(--card-shadow); }
.founder-name-card {
  position: absolute; bottom: 0; right: 0; background: var(--bg-surface);
  border-radius: 14px; padding: 18px 24px; box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.founder-grid h2 { font-size: 36px; margin-bottom: 20px; }
.founder-grid p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.founder-name-card .n { font-weight: 700; font-size: 17px; color: var(--text-primary); }
.founder-name-card .t { font-size: 14px; color: var(--text-secondary); }

/* Perspectives */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 26px; background: var(--card-bg); box-shadow: var(--card-shadow);
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.posts-grid .post-card:hover, .post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  box-shadow: var(--hover-shadow);
}
.post-icon {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.post-icon .icon { width: 26px; height: 26px; color: var(--accent); opacity: .7; transition: transform .3s ease, opacity .3s ease, filter .3s ease; }
.post-card:hover .post-icon .icon {
  transform: scale(1.05); opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 50%, transparent));
}
.post-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.post-card .tags span {
  font-size: 12px; color: var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.post-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.35; }
.post-card p { font-size: 16px; color: var(--text-secondary); line-height: 1.5; }
.post-card .read-more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.post-card .read-more .arrow { display: inline-block; transition: transform .2s ease; }
.post-card:hover .read-more .arrow { transform: translateX(4px); }

/* Contact */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { display: grid; gap: 16px; margin-top: 32px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-primary); font-family: inherit; font-size: 15px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; margin-top: 10px; }
.form-note.success { color: #4ADE80; }
.form-note.error { color: #F87171; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo img { height: 116px; width: auto; margin-bottom: 12px; }
.footer-tagline { color: var(--text-secondary); font-size: 14px; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; color: var(--text-secondary); font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
footer ul li a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent); }
.social-icons .icon { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-secondary);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--accent); }

/* Privacy page */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 32px; }
.legal h3 { font-size: 1.15rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text-primary); }

/* Article modal */
.article-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(10,15,30,0.6); backdrop-filter: blur(4px);
  padding: 5vh 20px; overflow-y: auto;
}
.article-modal-overlay.open { display: flex; }
.article-modal {
  position: relative; background: var(--bg-surface); border-radius: 20px;
  max-width: 768px; width: 100%; padding: 48px 44px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}
.article-modal-close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  font-size: 20px; line-height: 1; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.article-modal-close:hover { transform: scale(1.1); background: color-mix(in srgb, var(--text-secondary) 15%, transparent); color: var(--text-primary); }
.article-modal h2 {
  font-family: 'Recoleta', Georgia, serif; font-weight: 700; font-size: 36px; line-height: 1.25;
  margin: 0 32px 24px 0;
}
.article-modal-body p { color: var(--text-primary); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.article-modal-body p:last-child { margin-bottom: 0; }
.article-modal-body blockquote {
  font-family: 'Recoleta', Georgia, serif; font-style: italic; font-weight: 400; font-size: 20px;
  color: var(--text-primary); line-height: 1.5;
  border-left: 4px solid var(--accent); padding: 0 0 0 24px; margin: 32px 0;
}

/* Animate on scroll */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.mobile-cta { display: none; }

@media (max-width: 900px) {
  nav.nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .process-grid, .stats-row, .founder-grid, .posts-grid, .footer-grid, .services-layout {
    grid-template-columns: 1fr;
  }
  .founder-grid { gap: 32px; }
  .founder-photo-wrap { padding-right: 0; }
  .hero-content h1 { font-size: 38px; }

  /* Mobile nav dropdown */
  nav.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    padding: 8px 24px 20px;
    gap: 2px;
    z-index: 99;
  }
  nav.nav-links.mobile-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  nav.nav-links.mobile-open a:last-child { border-bottom: none; }
  nav.nav-links.mobile-open .mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    border-bottom: none;
  }
}

@media (max-width: 520px) {
  section { padding: 64px 0; }
  .hero-content h1 { font-size: 32px; }
  .hero-content { padding: 24px 20px; }
  .section-head h2, .founder-grid h2 { font-size: 28px; }
  .track-record-card { padding: 16px 20px; }
  .article-modal { padding: 32px 24px; }
  .article-modal h2 { font-size: 26px; margin-right: 20px; }
  .stats-row .num { font-size: 36px; }
}
