/* ==========================================================================
   techanvyl — design system
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

:root {
    --ink: #0b0b0c;
    --ink-2: #131315;
    --paper: #faf9f7;
    --surface: #ffffff;
    --text: #15151a;
    --text-muted: #5c5c66;
    --text-on-dark-muted: #9a9aa3;
    --line: #e7e5e0;
    --line-strong: #d7d5cf;
    --line-dark: rgba(255,255,255,0.11);
    --line-dark-soft: rgba(255,255,255,0.07);
    --accent: #d6420f;
    --accent-hover: #b8380c;
    --accent-soft: #ff7a42;
    --accent-dim: rgba(214,66,15,0.10);
    --ok: #1a7a4c;
    --err: #b3261e;
    --radius: 10px;
    --radius-sm: 6px;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(15,15,18,0.05), 0 1px 1px rgba(15,15,18,0.04);
    --shadow-md: 0 10px 28px rgba(15,15,18,0.08);
    --shadow-lg: 0 24px 60px rgba(15,15,18,0.16);
}

body {
    font-family: var(--body);
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== ICONS ===== */
.icn { width: 22px; height: 22px; display: block; }
.icn-sm { width: 13px; height: 13px; display: block; }
.logo-mark { width: 22px; height: 22px; display: block; flex-shrink: 0; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(11,11,12,0.4); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
    background: rgba(11,11,12,0.92); backdrop-filter: blur(16px);
    border-bottom-color: var(--line-dark-soft);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.nav-logo {
    font-family: var(--display); font-size: 1.15rem; font-weight: 700;
    text-decoration: none; letter-spacing: -0.01em; text-transform: lowercase;
    display: flex; align-items: center; gap: 11px; color: #fff;
}
.nav-links { display: flex; list-style: none; gap: 34px; align-items: center; }
.nav-links a {
    color: var(--text-on-dark-muted); text-decoration: none; font-weight: 500; font-size: 0.92rem;
    transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--accent-soft); transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; background: var(--accent-soft); }
.nav-cta {
    background: var(--accent); color: #fff !important; padding: 9px 20px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lang-switch {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
    color: var(--text-on-dark-muted) !important; text-decoration: none; padding: 5px 9px;
    border: 1px solid var(--line-dark); border-radius: 4px; transition: all 0.2s;
}
.lang-switch::after { display: none !important; }
.lang-switch:hover { color: #fff !important; border-color: rgba(255,255,255,0.35); }

.nav-toggle {
    display: none; width: 26px; height: 18px; position: relative;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
    position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ===== DARK PANEL (hero / page-header / cta / coming-soon) ===== */
.hero, .page-header, .cta-banner, .coming-soon, .motto-banner {
    background: var(--ink);
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    position: relative; overflow: hidden;
}

/* ===== FX: aurora glow / cursor spotlight / forge sparks ===== */
.fx-aurora { position: absolute; inset: -10%; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-aurora span { position: absolute; border-radius: 50%; filter: blur(80px); }
.fx-aurora span:nth-child(1) {
    width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; left: -8%; top: -18%;
    background: radial-gradient(circle, rgba(214,66,15,0.38) 0%, transparent 70%);
    animation: fx-drift-a 24s ease-in-out infinite;
}
.fx-aurora span:nth-child(2) {
    width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; right: -10%; bottom: -20%;
    background: radial-gradient(circle, rgba(255,180,84,0.28) 0%, transparent 70%);
    animation: fx-drift-b 30s ease-in-out infinite;
}
@keyframes fx-drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%,6%) scale(1.08); } }
@keyframes fx-drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%,-4%) scale(1.05); } }
.fx-spotlight {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(480px circle at var(--mx, 60%) var(--my, 15%), rgba(255,122,66,0.20), transparent 65%);
}
.fx-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
    .fx-aurora span { animation: none; }
}

/* ===== HERO ===== */
.hero {
    min-height: 92vh; display: flex; align-items: center; justify-content: center;
    padding: 130px 24px 80px;
}
.hero-content { text-align: center; position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent; color: #c9c9d1;
    padding: 7px 16px; border-radius: var(--radius-sm);
    font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px; border: 1px solid var(--line-dark);
    position: relative; z-index: 1;
}
.hero-badge .dot {
    display: inline-block; width: 6px; height: 6px; background: var(--accent-soft);
    border-radius: 50%; animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hero h1 {
    font-family: var(--display); font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; color: #fff;
    line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 24px;
    position: relative; z-index: 1;
}
.hero h1 .highlight { color: var(--accent-soft); white-space: nowrap; }
.hero p {
    font-size: 1.15rem; color: var(--text-on-dark-muted); max-width: 600px; margin: 0 auto 40px;
    line-height: 1.7; position: relative; z-index: 1;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* Entrance animation */
@keyframes fx-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .hero-badge { animation: fx-fade-up 0.7s cubic-bezier(.16,.8,.3,1) both; }
    .hero h1 { animation: fx-fade-up 0.8s cubic-bezier(.16,.8,.3,1) 0.08s both; }
    .hero p { animation: fx-fade-up 0.8s cubic-bezier(.16,.8,.3,1) 0.16s both; }
    .hero-buttons { animation: fx-fade-up 0.8s cubic-bezier(.16,.8,.3,1) 0.24s both; }
    .cs-badge { animation: fx-fade-up 0.7s cubic-bezier(.16,.8,.3,1) both; }
    .cs-content h1 { animation: fx-fade-up 0.8s cubic-bezier(.16,.8,.3,1) 0.08s both; }
    .cs-content p { animation: fx-fade-up 0.8s cubic-bezier(.16,.8,.3,1) 0.16s both; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.98rem; text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg); transition: left 0.55s ease;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:hover::before { left: 130%; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-outline:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); }

/* ===== SECTION BASE ===== */
.section { padding: 96px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem;
    font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 16px; height: 1px; background: var(--accent); }
.section-title {
    font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.025em;
    line-height: 1.2; color: var(--text); margin-bottom: 16px;
}
.section-subtitle { font-size: 1.08rem; color: var(--text-muted); max-width: 580px; line-height: 1.7; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 150px 24px 64px; text-align: center; }
.page-header h1 {
    font-family: var(--display); font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 700; color: #fff;
    position: relative; z-index: 1; letter-spacing: -0.025em;
}
.page-header p { color: var(--text-on-dark-muted); font-size: 1.1rem; max-width: 560px; margin: 16px auto 0; position: relative; z-index: 1; }

/* ===== PROBLEM / SOLUTION ===== */
.problem-solution { background: var(--surface); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.ps-card {
    padding: 34px; border-radius: var(--radius); border: 1px solid var(--line);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.ps-card:hover { box-shadow: var(--shadow-md); }
.ps-card.red { border-top: 2px solid var(--err); }
.ps-card.green { border-top: 2px solid var(--ok); }
.ps-card h3 {
    font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.ps-card h3::before {
    content: ''; width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
    background-repeat: no-repeat; background-position: center; background-size: 11px 11px;
}
.ps-card.red h3::before {
    background-color: rgba(179,38,30,0.09);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b3261e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
}
.ps-card.green h3::before {
    background-color: rgba(26,122,76,0.09);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a7a4c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}
.ps-card ul { list-style: none; }
.ps-card ul li { padding: 8px 0; color: var(--text-muted); display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; }
.ps-card ul li::before { content: ''; min-width: 5px; height: 5px; border-radius: 50%; margin-top: 9px; }
.ps-card.red ul li::before { background: var(--err); }
.ps-card.green ul li::before { background: var(--ok); }

/* ===== MOTTO BANNER (services) ===== */
.motto-banner { border-radius: var(--radius); padding: 46px 40px; text-align: center; margin-bottom: 56px; }
.motto-banner h3 {
    font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: #fff;
    position: relative; z-index: 1; letter-spacing: -0.01em;
}
.motto-banner h3 .hl { color: var(--accent-soft); }
.motto-banner p { color: var(--text-on-dark-muted); font-size: 1.05rem; position: relative; z-index: 1; margin-top: 12px; }

/* ===== PILLARS (services) ===== */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pillar-card {
    background: var(--surface); border-radius: var(--radius); padding: 36px 30px;
    border: 1px solid var(--line);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar-icon {
    width: 46px; height: 46px; border-radius: 9px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 22px;
    background: var(--accent-dim); color: var(--accent);
}
.pillar-card h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== STEPS (how it works) ===== */
.how-it-works { background: var(--surface); }
.steps { margin-top: 50px; position: relative; }
.steps::before { content: ''; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.step { display: flex; gap: 24px; margin-bottom: 36px; position: relative; padding-left: 60px; }
.step:last-child { margin-bottom: 0; }
.step-num {
    position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
.step-content h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 0.96rem; }

/* ===== COMING SOON (products) ===== */
.coming-soon {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 130px 24px;
}
.cs-content { position: relative; z-index: 1; max-width: 620px; }
.cs-badge {
    display: inline-flex; align-items: center; gap: 9px;
    color: #c9c9d1; padding: 7px 16px; border-radius: var(--radius-sm);
    font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 30px; border: 1px solid var(--line-dark);
}
.cs-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent-soft); border-radius: 50%; }
.cs-content h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 20px; }
.cs-content h1 .highlight { color: var(--accent-soft); white-space: nowrap; }
.cs-content p { font-size: 1.12rem; color: var(--text-on-dark-muted); line-height: 1.7; }

/* ===== ABOUT ===== */
.about { background: var(--surface); }
.about-text { max-width: 700px; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.85; font-size: 1.02rem; }
.logo-text { font-family: var(--display); font-weight: 700; text-transform: lowercase; color: inherit; }

/* ===== CONTACT ===== */
.contact { background: var(--surface); }
.contact-grid { max-width: 100%; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 14px; font-size: 1rem; color: var(--text);
    padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.contact-item .ci-icon {
    width: 40px; height: 40px; border-radius: 9px; background: var(--accent-dim); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item > div { line-height: 1.4; }
.contact-item strong { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 3px; }
.contact-item a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-item span { color: var(--text); line-height: 1.4; }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 88px 24px; text-align: center; }
.cta-banner .section-inner { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--display); color: #fff; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-banner p { color: var(--text-on-dark-muted); font-size: 1.05rem; margin-bottom: 34px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: #8f8f98; padding: 56px 24px 32px; border-top: 1px solid var(--line-dark-soft); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col h4 { font-family: var(--display); display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: 16px; text-transform: lowercase; letter-spacing: -0.01em; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #8f8f98; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-soft); }
.footer-bottom { border-top: 1px solid var(--line-dark-soft); padding-top: 24px; text-align: center; font-size: 0.82rem; font-family: var(--mono); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(.16,.8,.3,1), transform 0.6s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.ps-grid > .reveal:nth-child(2),
.pillars-grid > .reveal:nth-child(2),
.steps > .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars-grid > .reveal:nth-child(3),
.steps > .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps > .reveal:nth-child(4) { transition-delay: 0.24s; }
.steps > .reveal:nth-child(5) { transition-delay: 0.32s; }
.contact-info > .contact-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.contact-info > .contact-item.reveal:nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* ===== MOBILE NAV ===== */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start; position: absolute;
        top: 76px; left: 0; right: 0; height: calc(100vh - 76px); background: var(--ink);
        padding: 28px; gap: 22px; overflow-y: auto;
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-toggle { display: block; }
    .section-title { font-size: 1.9rem; }
    .ps-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.02rem; }
    .steps::before { left: 15px; }
    .step { padding-left: 48px; }
    .step-num { width: 32px; height: 32px; font-size: 0.85rem; }
}
