/* ═══════════════════════════════════════════════════════
   AMPLIANA — Main Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    --bg: #FAFAF8;
    --bg-alt: #F2F1ED;
    --bg-card: #FFFFFF;
    --text: #1A1A1A;
    --text-s: #5C5C5C;
    --text-t: #8A8A8A;
    --accent: #2553E8;
    --accent-soft: #EEF1FD;
    --accent-hover: #1A3FBF;
    --border: #E5E4E0;
    --border-s: #D1D0CC;
    --success: #1A8B5C;
    --font-d: 'Playfair Display', Georgia, serif;
    --font-b: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
    --r: 8px;
    --rl: 12px;
    --mw: 1200px;
    --tr: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Pages ── */
.page { display: none; }
.page.active { display: block; }
.page-top { padding-top: 120px; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fade-up { animation: fadeUp .7s ease both; }
.float-anim { animation: float 6s ease-in-out infinite; }

/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,248,.88); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-in {
    max-width: var(--mw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 64px;
}
.nav-logo {
    font-family: var(--font-d); font-size: 22px; font-weight: 600;
    color: var(--text); text-decoration: none; letter-spacing: -.02em; cursor: pointer;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; }
.nav-lnk { display: flex; align-items: center; gap: 32px; }
.nav-lnk a {
    font-size: 14px; font-weight: 500; color: var(--text-s);
    text-decoration: none; cursor: pointer; transition: color var(--tr); position: relative;
}
.nav-lnk a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--accent); transition: width var(--tr);
}
.nav-lnk a:hover { color: var(--text); text-decoration: none; }
.nav-lnk a:hover::after { width: 100%; }
.nav-r { display: flex; align-items: center; gap: 16px; }

/* Language Switcher */
.lang-sw {
    position: relative; display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 500; color: var(--text-s); cursor: pointer;
    padding: 6px 10px; border-radius: var(--r);
    border: 1px solid var(--border); background: var(--bg-card); transition: var(--tr);
}
.lang-sw:hover { border-color: var(--border-s); }
.lang-dd {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-md);
    overflow: hidden; min-width: 120px; z-index: 10;
}
.lang-dd button {
    display: block; width: 100%; padding: 8px 14px; text-align: left;
    font-size: 13px; font-weight: 500; font-family: var(--font-b);
    border: none; background: none; cursor: pointer; color: var(--text-s); transition: var(--tr);
}
.lang-dd button:hover { background: var(--bg-alt); color: var(--text); }
.lang-dd button.act { color: var(--accent); background: var(--accent-soft); }

/* Mobile */
.mob-tog { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.mob-menu {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: var(--bg); padding: 80px 32px 32px; flex-direction: column; gap: 8px;
}
.mob-menu.open { display: flex; }
.mob-menu a {
    font-size: 18px; font-weight: 500; color: var(--text);
    text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.mob-close { position: absolute; top: 20px; right: 32px; background: none; border: none; cursor: pointer; color: var(--text); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--r);
    font-size: 14px; font-weight: 600; font-family: var(--font-b);
    text-decoration: none; cursor: pointer; transition: all var(--tr);
    border: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-s { background: transparent; color: var(--text); border: 1px solid var(--border-s); }
.btn-s:hover { border-color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-nav { padding: 8px 18px; font-size: 13px; }
.full-w { width: 100%; justify-content: center; }

/* ═══ SECTIONS ═══ */
.sec { padding: 96px 32px; max-width: var(--mw); margin: 0 auto; }
.sec-alt { background: var(--bg-alt); position: relative; overflow: hidden; }
.sec-alt .sec { padding: 96px 32px; }
.sec-hd { max-width: 640px; margin-bottom: 64px; }
.sec-hd.center { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.sec-hd h2 {
    font-family: var(--font-d); font-size: clamp(28px, 4vw, 40px);
    font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px;
}
.sec-hd p { font-size: 17px; color: var(--text-s); line-height: 1.6; }

/* ═══ HERO ═══ */
.hero {
    padding: 140px 32px 80px; max-width: var(--mw); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-soft); color: var(--accent);
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
    margin-bottom: 24px; letter-spacing: .02em;
}
.hero h1 {
    font-family: var(--font-d); font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
    margin-bottom: 24px; color: var(--text-s);
}
.hero h1 strong { color: var(--text); font-weight: 700; }
.hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-s); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-visual { position: relative; }
.hero-glow {
    position: absolute; top: -40px; right: -60px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,83,232,.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(37,83,232,.12);
}
.hero-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--rl); overflow: hidden;
}
.hero-metric { background: var(--bg-card); padding: 20px 16px; text-align: center; }
.hero-metric .val { font-family: var(--font-d); font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.hero-metric .lbl { font-size: 12px; color: var(--text-t); font-weight: 500; }

/* ─── Mockup Placeholder ─── */
.mockup-placeholder {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(37,83,232,.12);
}
.mockup-bar {
    display: flex; gap: 6px; padding: 10px 14px; background: #F8F8F6; border-bottom: 1px solid var(--border);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #FF6058; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #27CA40; }
.mockup-body { display: flex; min-height: 240px; }
.mockup-sidebar { width: 120px; background: #FAFAF8; border-right: 1px solid var(--border); padding: 12px; }
.mockup-main { flex: 1; padding: 16px; }
.mockup-cards { display: flex; gap: 8px; margin-bottom: 16px; }
.mc { flex: 1; height: 40px; background: var(--bg-alt); border-radius: 6px; border: 1px solid var(--border); }
.mockup-pipeline { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.mp-step {
    padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: var(--bg-alt); color: var(--text-t); border: 1px solid var(--border);
}
.mp-step.done { background: #F0FDF4; color: var(--success); border-color: #BBF7D0; }
.mp-step.active { background: var(--accent-soft); color: var(--accent); border-color: #B8C9F9; }
.mp-arrow { color: var(--text-t); font-size: 12px; }
.mockup-table { display: flex; flex-direction: column; gap: 6px; }
.mt-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #F2F1ED; }
.mt-bar { height: 6px; background: var(--bg-alt); border-radius: 3px; }
.w80 { width: 80%; } .w60 { width: 60%; } .w70 { width: 70%; }
.mt-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.mt-badge.green { background: #F0FDF4; color: var(--success); }
.mt-badge.blue { background: var(--accent-soft); color: var(--accent); }
.mt-badge.gray { background: var(--bg-alt); color: var(--text-t); }

/* ═══ FEATURES ═══ */
.feat-tabs {
    display: flex; gap: 4px; margin-bottom: 40px;
    background: var(--bg-alt); border-radius: var(--r); padding: 4px; width: fit-content;
}
.feat-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500;
    font-family: var(--font-b); cursor: pointer; border: none;
    background: transparent; color: var(--text-s); transition: var(--tr);
}
.feat-tab.act { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--rl); padding: 24px; transition: all var(--tr);
    display: flex; gap: 16px; align-items: flex-start;
}
.feat-card:hover { border-color: var(--border-s); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feat-card-icon { flex-shrink: 0; width: 36px; height: 36px; }
.feat-card-icon img { width: 36px; height: 36px; }
.feat-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 14px; color: var(--text-s); line-height: 1.5; }
.feat-category { margin-bottom: 64px; }
.feat-category h3 { font-size: 18px; font-weight: 600; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

/* ═══ STEPS ═══ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--rl); padding: 28px; transition: all var(--tr);
}
.step-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-s); }
.step-num { font-family: var(--font-d); font-size: 36px; font-weight: 700; color: var(--accent); opacity: .3; margin-bottom: 12px; line-height: 1; }
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-s); line-height: 1.5; }

/* ═══ PRODUCT PREVIEW ═══ */
.preview-wrap {
    position: relative; padding: 24px;
    background: linear-gradient(135deg, #FAFAF8 0%, #EEF1FD 50%, #F0FDF4 100%);
    border-radius: 16px; border: 1px solid var(--border);
}
.preview-img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.preview-placeholder {
    padding: 80px; text-align: center; color: var(--text-t); font-size: 15px;
    background: var(--bg-card); border-radius: 8px; border: 2px dashed var(--border);
}
.deco-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px; opacity: .4; pointer-events: none;
}

/* ═══ CTA SECTION ═══ */
.cta-sec {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%); text-align: center;
}
.cta-sec .sec { position: relative; z-index: 2; }
.cta-sec h2 { font-family: var(--font-d); font-size: clamp(24px, 3.5vw, 36px); font-weight: 600; margin-bottom: 16px; color: #fff; letter-spacing: -.02em; }
.cta-sec p { font-size: 17px; color: rgba(255,255,255,.6); margin-bottom: 32px; }
.cta-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(37,83,232,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(37,83,232,.08) 1px, transparent 1px);
    background-size: 40px 40px; opacity: .5;
}

/* ═══ PRICING ═══ */
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--rl); padding: 48px; max-width: 640px;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.pricing-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), #7C3AED, var(--accent));
}
.pricing-card h3 { font-family: var(--font-d); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.pricing-custom { font-size: 15px; color: var(--text-s); margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); padding: 8px 0; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-note { font-size: 13px; color: var(--text-t); margin-top: 16px; }

/* ═══ ABOUT ═══ */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 16px; color: var(--text-s); line-height: 1.7; margin-bottom: 16px; }
.values-list { display: flex; flex-direction: column; gap: 20px; }
.value-card {
    padding: 24px; border-left: 3px solid var(--accent);
    background: var(--bg-card); border-radius: 0 var(--r) var(--r) 0; transition: all var(--tr);
}
.value-card:hover { box-shadow: var(--shadow-sm); }
.value-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.value-card p { font-size: 14px; color: var(--text-s); }

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; color: var(--text-s); font-size: 14px; }
.contact-info a { color: var(--accent); }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 700; color: var(--text-t);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; font-size: 15px; font-family: var(--font-b);
    border: 1px solid var(--border); border-radius: var(--r);
    background: var(--bg-card); color: var(--text); transition: border-color var(--tr); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,83,232,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-s); text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 2px; width: auto; }
.form-success {
    padding: 16px; background: #F0FDF4; border: 1px solid #BBF7D0;
    border-radius: var(--r); color: var(--success); font-size: 14px; font-weight: 500;
}

/* ═══ LEGAL PAGES ═══ */
.legal-page h1 { font-family: var(--font-d); font-size: 32px; font-weight: 600; margin-bottom: 32px; }
.legal-content { max-width: 720px; }
.legal-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.legal-content p { font-size: 15px; color: var(--text-s); line-height: 1.7; margin-bottom: 12px; }
.legal-content a { color: var(--accent); }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-in { max-width: var(--mw); margin: 0 auto; padding: 64px 32px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 12px; display: block; }
.footer-tagline { font-size: 15px; color: var(--text-s); font-style: italic; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-t); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-s); text-decoration: none; padding: 4px 0; cursor: pointer; transition: color var(--tr); }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-btm { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-t); }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: var(--text); color: #fff; padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-inner { max-width: var(--mw); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-inner p { font-size: 13px; line-height: 1.5; opacity: .85; }
.cookie-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cookie-link { color: rgba(255,255,255,.6); font-size: 13px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .nav-lnk { display: none; }
    .mob-tog { display: block; }
    .hero { grid-template-columns: 1fr; padding: 120px 32px 64px; }
    .hero-visual { order: -1; }
    .feat-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .about-content, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card { padding: 32px; }
    .feat-tabs { flex-wrap: wrap; }
    .cookie-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 110px 20px 48px; }
    .sec { padding: 64px 20px; }
    .sec-alt .sec { padding: 64px 20px; }
    .nav-in { padding: 0 20px; }
    .footer-in { padding: 48px 20px 24px; }
    .hero-metrics { grid-template-columns: 1fr; }
}
