/* ========================================
   AIOP Tech — Shared Stylesheet v2
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --bg:    #04091a;
  --bg2:   #07101f;
  --bg3:   #0b1628;
  --surface:  rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.14);

  --blue:    #3b82f6;
  --blue-d:  #1d4ed8;
  --cyan:    #06b6d4;
  --violet:  #8b5cf6;
  --teal:    #14b8a6;
  --emerald: #10b981;
  --amber:   #f59e0b;
  --rose:    #f43f5e;

  --text:   #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;

  --r:  12px;
  --r2: 20px;
  --t:  all 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 96px 0; }
.section--alt { background: var(--bg2); }
.text-center  { text-align: center; }

/* ---- Typography ---- */
h1 { font-size: 64px; font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; color: var(--text); margin-bottom: 24px; }
h2 { font-size: 42px; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; color: var(--text); margin-bottom: 20px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 12px; }
p  { font-size: 16px; line-height: 1.75; color: var(--text-2); margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }

.gradient-text {
  background: linear-gradient(130deg, #60a5fa 0%, #06b6d4 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top:0; left:0; right:0; height:64px;
  background: rgba(4,9,26,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.navbar .container { display:flex; justify-content:space-between; align-items:center; height:64px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--blue); }
.nav-links { display:flex; gap:4px; align-items:center; }
.nav-links a { font-size:14px; color:var(--text-2); text-decoration:none; font-weight:500; padding:7px 14px; border-radius:8px; transition:var(--t); white-space:nowrap; }
.nav-links a:hover { color:var(--text); background:var(--surface2); }
.nav-links a.active { color:var(--blue); }
.nav-cta { background:var(--blue) !important; color:#fff !important; font-weight:600 !important; }
.nav-cta:hover { background:var(--blue-d) !important; box-shadow:0 4px 16px rgba(59,130,246,0.4) !important; }

/* ---- Hamburger / Mobile menu ---- */
.hamburger { display:none; background:none; border:none; cursor:pointer; padding:6px; color:var(--text); line-height:0; }
.mobile-menu {
  display:none; position:fixed; top:64px; left:0; right:0;
  background:rgba(4,9,26,0.97); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border);
  padding:20px 24px 28px; z-index:999;
}
.mobile-menu.open { display:block; }
.mobile-menu a { display:block; padding:13px 0; color:var(--text-2); text-decoration:none; font-size:16px; font-weight:500; border-bottom:1px solid var(--border); transition:var(--t); }
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a:hover, .mobile-menu a.active { color:var(--blue); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display:flex; align-items:center;
  padding-top: 64px; position:relative; overflow:hidden;
}
.hero-page {
  min-height: 52vh; display:flex; align-items:center;
  padding: 128px 0 80px; position:relative; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(59,130,246,0.2) 0%, transparent 68%),
    radial-gradient(ellipse 45% 45% at 85% 90%, rgba(139,92,246,0.1) 0%, transparent 60%);
}
.hero-bg--violet {
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(139,92,246,0.2) 0%, transparent 68%),
    radial-gradient(ellipse 40% 40% at 15% 90%, rgba(59,130,246,0.1) 0%, transparent 60%);
}
.hero-bg--teal {
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(20,184,166,0.18) 0%, transparent 68%),
    radial-gradient(ellipse 40% 40% at 85% 90%, rgba(6,182,212,0.09) 0%, transparent 60%);
}
.hero-grid {
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

/* ---- Buttons ---- */
.btn { display:inline-block; padding:13px 26px; border-radius:10px; font-weight:600; font-size:15px; text-decoration:none; transition:var(--t); cursor:pointer; border:none; line-height:1.4; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:var(--blue-d); transform:translateY(-1px); box-shadow:0 8px 28px rgba(59,130,246,0.38); }
.btn-secondary { background:var(--surface2); color:var(--text); border:1px solid var(--border2); }
.btn-secondary:hover { background:rgba(255,255,255,0.1); transform:translateY(-1px); }
.btn-ghost { background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { background:rgba(255,255,255,0.14); }
.btn-violet { background:var(--violet); color:#fff; }
.btn-violet:hover { background:#7c3aed; transform:translateY(-1px); box-shadow:0 8px 28px rgba(139,92,246,0.38); }
.btn-teal { background:var(--teal); color:#fff; }
.btn-teal:hover { background:#0f766e; transform:translateY(-1px); box-shadow:0 8px 28px rgba(20,184,166,0.38); }
.btn-sm { padding:9px 18px; font-size:14px; }
.btn-lg { padding:16px 36px; font-size:17px; }

/* ---- Cards ---- */
.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:32px;
  transition:var(--t);
}
.card:hover { border-color:var(--border2); background:var(--surface2); }
.card--product { border-top:3px solid var(--blue); }
.card--product:hover { box-shadow:0 0 48px rgba(59,130,246,0.1); }
.card--product.violet { border-top-color:var(--violet); }
.card--product.violet:hover { box-shadow:0 0 48px rgba(139,92,246,0.1); }
.card--product.teal   { border-top-color:var(--teal); }
.card--product.teal:hover { box-shadow:0 0 48px rgba(20,184,166,0.1); }
.card--product.cyan   { border-top-color:var(--cyan); }
.card--product.cyan:hover { box-shadow:0 0 48px rgba(6,182,212,0.1); }
.card--product.emerald{ border-top-color:var(--emerald); }
.card--product.emerald:hover { box-shadow:0 0 48px rgba(16,185,129,0.1); }

/* ---- Icon boxes ---- */
.icon-box { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:20px; flex-shrink:0; }
.icon--blue    { background:rgba(59,130,246,0.15); }
.icon--violet  { background:rgba(139,92,246,0.15); }
.icon--teal    { background:rgba(20,184,166,0.15); }
.icon--cyan    { background:rgba(6,182,212,0.15); }
.icon--emerald { background:rgba(16,185,129,0.15); }
.icon--amber   { background:rgba(245,158,11,0.15); }
.icon--rose    { background:rgba(244,63,94,0.15); }

/* ---- Badges ---- */
.badge { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:20px; font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:20px; }
.badge--blue    { background:rgba(59,130,246,0.12); color:#60a5fa; border:1px solid rgba(59,130,246,0.28); }
.badge--violet  { background:rgba(139,92,246,0.12); color:#a78bfa; border:1px solid rgba(139,92,246,0.28); }
.badge--teal    { background:rgba(20,184,166,0.12); color:#2dd4bf; border:1px solid rgba(20,184,166,0.28); }
.badge--cyan    { background:rgba(6,182,212,0.12); color:#22d3ee; border:1px solid rgba(6,182,212,0.28); }
.badge--amber   { background:rgba(245,158,11,0.12); color:#fbbf24; border:1px solid rgba(245,158,11,0.28); }
.badge--emerald { background:rgba(16,185,129,0.12); color:#34d399; border:1px solid rgba(16,185,129,0.28); }

/* ---- Grids ---- */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-5 { display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }

/* ---- Feature list ---- */
ul.feat { list-style:none; padding:0; margin:16px 0 24px; }
ul.feat li { position:relative; padding-left:22px; margin-bottom:10px; font-size:15px; color:var(--text-2); line-height:1.65; }
ul.feat li::before { content:'✓'; position:absolute; left:0; color:var(--blue); font-weight:700; font-size:13px; top:2px; }
ul.feat.violet li::before { color:var(--violet); }
ul.feat.teal   li::before { color:var(--teal); }
ul.feat.cyan   li::before { color:var(--cyan); }
ul.feat.emerald li::before { color:var(--emerald); }

/* ---- Steps ---- */
.step { text-align:center; }
.step-num { width:44px; height:44px; border-radius:50%; background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.3); color:var(--blue); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-weight:700; font-size:15px; }

/* ---- Divider ---- */
.section-divider { width:48px; height:3px; border-radius:2px; background:linear-gradient(90deg,var(--blue),var(--cyan)); margin:16px auto 48px; }

/* ---- CTA Banner ---- */
.cta-banner {
  background:linear-gradient(135deg,rgba(59,130,246,0.1) 0%,rgba(139,92,246,0.07) 100%);
  border:1px solid rgba(59,130,246,0.2); border-radius:var(--r2);
  padding:72px 48px; text-align:center;
}

/* ---- Note box ---- */
.note { background:rgba(245,158,11,0.07); border-left:3px solid var(--amber); border-radius:8px; padding:20px 24px; margin:24px 0; }
.note h3 { color:var(--amber); font-size:14px; font-weight:700; margin-bottom:8px; }
.note p  { font-size:14px; color:var(--text-2); margin:0; }
.note--blue { background:rgba(59,130,246,0.07); border-left-color:var(--blue); }
.note--blue h3 { color:#60a5fa; }

/* ---- Tag pills ---- */
.tag { display:inline-block; background:var(--surface2); border:1px solid var(--border2); color:var(--text-2); font-size:13px; font-weight:500; padding:4px 10px; border-radius:6px; margin:3px; }

/* ---- Form ---- */
input, textarea, select {
  width:100%; padding:14px 16px;
  background:var(--surface); border:1px solid var(--border2);
  border-radius:10px; font-size:15px; color:var(--text);
  font-family:inherit; margin-bottom:16px; transition:var(--t);
}
input::placeholder, textarea::placeholder { color:var(--text-3); }
input:focus, textarea:focus, select:focus { outline:none; border-color:var(--blue); background:var(--surface2); box-shadow:0 0 0 3px rgba(59,130,246,0.12); }
textarea { min-height:140px; resize:vertical; }
label { display:block; font-size:14px; font-weight:600; color:var(--text-2); margin-bottom:6px; }

/* ---- Footer ---- */
footer { background:var(--bg2); border-top:1px solid var(--border); padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:2.5fr 1fr 1fr 1fr; gap:48px; padding-bottom:48px; }
footer h4 { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-3); margin-bottom:18px; }
footer a { color:var(--text-2); text-decoration:none; display:block; margin-bottom:11px; font-size:14px; transition:var(--t); }
footer a:hover { color:var(--blue); }
footer p { color:var(--text-3); font-size:14px; line-height:1.7; }
.footer-brand { font-size:20px; font-weight:800; color:var(--text); text-decoration:none !important; display:block !important; margin-bottom:10px !important; }
.footer-brand span { color:var(--blue); }
.footer-bottom { border-top:1px solid var(--border); padding:24px 40px; text-align:center; font-size:13px; color:var(--text-3); }

/* ---- Responsive ---- */
@media(max-width:1024px) {
  .container { padding:0 24px; }
  h1 { font-size:48px; letter-spacing:-0.5px; }
  h2 { font-size:34px; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .grid-5 { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media(max-width:768px) {
  h1 { font-size:36px; letter-spacing:-0.2px; }
  h2 { font-size:28px; }
  h3 { font-size:18px; }
  .container { padding:0 20px; }
  .section { padding:64px 0; }
  .hero-page { padding:104px 0 60px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { padding:20px; }
  .nav-links { display:none !important; }
  .hamburger { display:block; }
  .cta-banner { padding:40px 20px; }
  .hero { min-height:90vh; }
}
