/* ============================================================
   energ.IA — corporate site design system
   ============================================================ */

:root {
    --ink: #0E1B2C;
    --body: #45576C;
    --muted: #7A8AA0;
    --brand: #1452D6;
    --brand-600: #0F3FA8;
    --accent: #12B981;
    --bg: #FFFFFF;
    --soft: #F4F7FB;
    --line: #E5EAF1;
    --dark: #0C1826;
    --dark-soft: #16293D;
    --dark-line: rgba(255, 255, 255, 0.10);

    --r: 16px;
    --r-sm: 10px;
    --r-pill: 999px;

    --sh-sm: 0 1px 2px rgba(16, 27, 44, .06);
    --sh: 0 1px 2px rgba(16, 27, 44, .05), 0 10px 30px rgba(16, 27, 44, .07);
    --sh-lg: 0 24px 60px rgba(16, 27, 44, .12);

    --container: 1160px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .98rem; line-height: 1;
    padding: .85rem 1.4rem; border-radius: var(--r-pill);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(20, 82, 214, .25); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 82, 214, .32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--sh-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand .ia { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-link { font-size: .96rem; font-weight: 500; color: var(--body); transition: color .2s var(--ease); position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--brand);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
    background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: .45rem .8rem; font-size: .85rem; font-weight: 600; color: var(--ink);
    font-family: inherit; transition: border-color .2s var(--ease);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + .5rem); min-width: 140px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    box-shadow: var(--sh); padding: .35rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s var(--ease);
}
.lang-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--body); }
.lang-menu a:hover { background: var(--soft); color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 4rem 0; }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.badge {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); background: rgba(20, 82, 214, .08); padding: .4rem .85rem; border-radius: var(--r-pill); margin-bottom: 1.1rem;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.section-sub { font-size: 1.12rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 80% 0%, rgba(20, 82, 214, .07), transparent 60%),
        radial-gradient(50% 50% at 0% 20%, rgba(18, 185, 129, .06), transparent 60%);
}
.hero-inner { max-width: 840px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--brand);
    background: #fff; border: 1px solid var(--line); padding: .45rem 1rem; border-radius: var(--r-pill); margin-bottom: 1.6rem; box-shadow: var(--sh-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; margin-bottom: 1.4rem; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--body); max-width: 660px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 2rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.section--dark .stat { background: var(--dark-soft); border-color: var(--dark-line); }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.section--dark .stat-num { color: #fff; }
.stat-label { font-size: .95rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.8rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(20, 82, 214, .08); color: var(--brand); margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { font-size: .98rem; color: var(--body); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.prose p { margin-bottom: 1.1rem; color: var(--body); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Product (Ferward) ---------- */
.product {
    background: #fff; border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); overflow: hidden;
    box-shadow: var(--sh); display: grid; grid-template-columns: 1.1fr 1fr;
}
.product-body { padding: 3rem; }
.product-side { background: linear-gradient(160deg, var(--dark), var(--dark-soft)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.product-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.product-name { font-size: 2.4rem; letter-spacing: -.03em; margin-bottom: .4rem; }
.product-tagline { font-size: 1.1rem; color: var(--body); margin-bottom: 1.8rem; }
.product-features { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.product-features li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; color: var(--body); }
.product-features svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.product-side h4 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.product-side p { color: rgba(255, 255, 255, .72); font-size: .98rem; margin-bottom: 1.6rem; }
.module { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--dark-line); }
.module:first-of-type { border-top: 0; }
.module strong { color: #fff; display: block; font-size: 1rem; margin-bottom: .2rem; }
.module span { color: rgba(255, 255, 255, .65); font-size: .9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.8rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.avatar {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); margin-bottom: 1.2rem; letter-spacing: -.02em;
}
.team-name { font-size: 1.25rem; margin-bottom: .25rem; }
.role { font-size: .9rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.tag { font-size: .78rem; font-weight: 600; color: var(--body); background: var(--soft); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: var(--r-pill); }
.bio { font-size: .95rem; color: var(--body); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--body); margin-bottom: 1.6rem; }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.6rem; }
.contact-card .label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card a { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: var(--sh-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.field input, .field textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 82, 214, .12); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA band ---------- */
.cta {
    background: linear-gradient(160deg, var(--dark), var(--dark-soft)); border-radius: calc(var(--r) + 8px);
    padding: 4rem 3rem; text-align: center; color: #fff;
}
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.cta p { color: rgba(255, 255, 255, .76); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Dark section ---------- */
.section--dark { background: var(--dark); color: rgba(255, 255, 255, .8); }
.section--dark .section-title, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-sub { color: rgba(255, 255, 255, .65); }
.section--dark .badge { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .68); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--dark-line); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 320px; font-size: .95rem; color: rgba(255, 255, 255, .6); }
.footer-col h4 { color: #fff; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .35rem 0; font-size: .96rem; color: rgba(255, 255, 255, .68); transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .5); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Notification ---------- */
.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 999; max-width: 340px;
    background: var(--ink); color: #fff; padding: 1rem 1.3rem; border-radius: var(--r-sm); box-shadow: var(--sh-lg);
    transform: translateY(20px); opacity: 0; transition: all .3s var(--ease); font-size: .95rem;
}
.toast.show { transform: none; opacity: 1; }
.toast.success { background: #0F9D6B; }
.toast.error { background: #D64545; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .split, .product, .contact-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .product-side { order: -1; }
    .split { gap: 2.5rem; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 4rem 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; padding: 1rem 24px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--sh);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
    }
    .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .nav-link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .nav-link.active::after { display: none; }
    .nav-right { width: 100%; justify-content: space-between; padding-top: 1rem; }
    .stats, .grid-3, .grid-4, .team-grid, .grid-2 { grid-template-columns: 1fr; }
    .product-body, .product-side, .cta { padding: 2rem; }
}
