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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: #1e293b; background: #f8fafc; }
a { color: #4f46e5; text-decoration: none; }
a:hover { color: #4338ca; text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }

/* ── HEADER / NAV ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.nav { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-shield {
    width: 34px; height: 34px; background: #4f46e5; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-shield svg { width: 18px; height: 18px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-main { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.brand-main span { color: #818cf8; }
.brand-sub { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.35); letter-spacing: .12em; text-transform: uppercase; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.6); padding: 6px 13px; border-radius: 6px; transition: color .13s, background .13s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.tep { color: #818cf8; }
.nav-link.tep:hover { color: #a5b4fc; background: rgba(129,140,248,.1); text-decoration: none; }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-btn { font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 7px; cursor: pointer; text-decoration: none; transition: all .13s; white-space: nowrap; }
.nav-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.82); }
.nav-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-btn-solid { background: #4f46e5; color: #fff; border: none; }
.nav-btn-solid:hover { background: #4338ca; color: #fff; text-decoration: none; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer;
    text-decoration: none; transition: all .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #4f46e5; color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.3); }
.btn-primary:hover { background: #4338ca; color: #fff; box-shadow: 0 4px 16px rgba(79,70,229,.4); }
.btn-outline { background: #fff; border: 1.5px solid #e2e8f0; color: #334155; }
.btn-outline:hover { border-color: #4f46e5; color: #4f46e5; }
.btn-tep { background: rgba(129,140,248,.12); border: 1.5px solid rgba(129,140,248,.35); color: #4338ca; }
.btn-tep:hover { background: rgba(129,140,248,.2); color: #3730a3; }
.btn-ghost-hero { background: transparent; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.btn-ghost-hero:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── HERO (home page) ── */
.hero {
    background: #0f172a;
    padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 8vw, 88px);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 70% at 78% 50%, rgba(79,70,229,.25) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 8% 78%, rgba(129,140,248,.08) 0%, transparent 60%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(79,70,229,.2); border: 1px solid rgba(129,140,248,.3);
    border-radius: 100px; padding: 4px 13px 4px 8px; margin-bottom: 22px;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #818cf8; flex-shrink: 0; }
.hero-tag-text { font-size: 11px; font-weight: 600; color: #a5b4fc; letter-spacing: .07em; text-transform: uppercase; }

.hero h1 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: clamp(38px, 6vw, 58px); line-height: 1.1; font-weight: 700;
    color: #fff; margin-bottom: 20px; max-width: 850px;
}
.hero h1 em { font-style: italic; color: #818cf8; }
.hero-lead { font-size: 17px; color: rgba(255,255,255,.58); line-height: 1.72; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat-val { font-size: 22px; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ── PAGE HERO (About / Product) ── */
.page-hero {
    background: #0f172a;
    padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 45% 60% at 83% 50%, rgba(79,70,229,.22) 0%, transparent 65%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: clamp(30px, 4.5vw, 46px); color: #fff; font-weight: 700;
    line-height: 1.13; margin-bottom: 16px; max-width: 560px;
}
.page-hero-lead { font-size: 16px; color: rgba(255,255,255,.56); line-height: 1.72; max-width: 580px; }
.page-hero-product { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ── BODY AREA ── */
.page-body { background: #f8fafc; padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px); }

/* ── FEATURE GRID ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.feat-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px;
    position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.feat-card-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.bar-blue { background: #4f46e5; }
.bar-teal { background: #0d9488; }
.bar-purple { background: #7c3aed; }
.feat-icon { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.fi-blue { background: #eef2ff; }
.fi-teal { background: #f0fdfa; }
.fi-purple { background: #f5f3ff; }
.feat-card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: #64748b; line-height: 1.65; }

/* ── TEP BANNER ── */
.tep-banner {
    background: #fff; border: 1px solid #c7d2fe; border-left: 4px solid #4f46e5;
    border-radius: 0 10px 10px 0; padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 28px;
}
.tep-banner-label { font-size: 11px; font-weight: 700; color: #4f46e5; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.tep-banner-title { font-size: 15px; color: #1e293b; font-weight: 600; margin-bottom: 3px; }
.tep-banner-sub { font-size: 13px; color: #64748b; }
.tep-link-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #4f46e5; color: #fff; font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: 7px; flex-shrink: 0;
    transition: background .15s, transform .15s; text-decoration: none;
}
.tep-link-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.tep-link-btn:hover { background: #4338ca; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ── CTA BOX ── */
.cta-box {
    background: #0f172a; border-radius: 16px;
    padding: clamp(36px, 5vw, 52px) clamp(32px, 5vw, 56px);
    text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(79,70,229,.25) 0%, transparent 70%);
}
.cta-box h2 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: clamp(22px, 3.5vw, 34px); color: #fff; margin-bottom: 10px;
    position: relative; font-weight: 700;
}
.cta-box p { font-size: 15px; color: rgba(255,255,255,.52); margin-bottom: 26px; position: relative; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px; }
.card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #4f46e5; display: inline-block; }

/* ── LAYOUTS ── */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.two-col-left { display: flex; flex-direction: column; gap: 18px; }
.two-col-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #475569; line-height: 1.55; }
.check-icon { width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-icon svg { width: 10px; height: 10px; }

/* ── CONTACT CARD ── */
.contact-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px; }
.contact-card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.contact-item:last-of-type { border-bottom: none; }
.contact-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; min-width: 48px; padding-top: 2px; }
.contact-val { font-size: 14px; line-height: 1.4; }
.contact-val a { color: #4f46e5; font-weight: 500; }
.contact-note { font-size: 13px; color: #64748b; margin-top: 14px; line-height: 1.6; font-style: italic; }
.contact-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.contact-actions .btn { justify-content: center; }

/* ── AZURE CHIP ── */
.azure-chip { display: inline-flex; align-items: center; gap: 6px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 100px; padding: 5px 12px 5px 8px; font-size: 11px; font-weight: 600; color: #4338ca; margin-top: 18px; }
.azure-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; flex-shrink: 0; }

/* ── PRODUCT BADGE ── */
.prod-badge { background: rgba(129,140,248,.1); border: 1px solid rgba(129,140,248,.25); border-radius: 12px; padding: 24px 32px; flex-shrink: 0; text-align: center; }
.prod-badge-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.38); margin-bottom: 6px; }
.prod-badge-val { font-size: 28px; font-weight: 700; color: #818cf8; }
.prod-badge-sub { font-size: 11px; color: rgba(255,255,255,.32); margin-top: 5px; }

/* ── TEP PORTAL CARD ── */
.tep-portal-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.tpc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4f46e5; margin-bottom: 4px; }
.tpc-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.tpc-url { font-size: 13px; color: #64748b; }

/* ── FOOTER ── */
.site-footer { background: #0f172a; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { padding: 48px 0 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 22px; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; display: block; }
.footer-brand span { color: #818cf8; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.36); line-height: 1.6; max-width: 220px; margin-top: 4px; }
.footer-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); padding: 3px 0; transition: color .13s; }
.footer-link:hover { color: #fff; text-decoration: none; }
.footer-link.tep { color: #818cf8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 32px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.24); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .two-col-equal { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .prod-badge { display: none; }
}
@media (max-width: 640px) {
    .feat-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .wrap { width: calc(100% - 40px); }
    .nav-links { display: none; }
    .hero h1 { font-size: 34px; }
    .hero-actions, .page-hero-actions { flex-direction: column; }
    .tep-banner, .tep-portal-card { flex-direction: column; align-items: flex-start; }
    .cta-box { padding: 36px 24px; }
}

/* ── Contact modal footer trigger ── */
.footer-link-btn { background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; }
.footer-link-btn:hover { color: #fff; text-decoration: none; }

/* ── Admin button animation ── */
#admin-secret-btn:hover { background: #4f46e5 !important; transform: translateY(-2px); }

/* ── Contact modal inputs ── */
.cm-input { width:100%; padding:9px 12px; border:1.5px solid #e2e8f0; border-radius:8px; font-size:13px; font-family:inherit; outline:none; transition:border-color .15s; background:#fff; }
.cm-input:focus { border-color:#4f46e5; }
.cm-input::placeholder { color:#94a3b8; }

/* ── Animations (in .css, plain @keyframes is valid) ── */
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform:rotate(360deg); } }
@keyframes fadeIn  { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Field validation states ── */
.cm-input.invalid { border-color: #dc2626 !important; }
.cm-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
