/* ========== Design System ========== */
:root{
  --bg: #0b1020;            /* Slate Night */
  --surface: #111827;       /* Card */
  --ink: #e5e7eb;           /* Text */
  --muted: #a3a3a3;         /* Muted */
  --brand: #3b82f6;         /* Blue */
  --brand-ink:#ffffff;      /* White for contrast */
  --brand-light: #60a5fa;   /* Light Blue */
  --brand-accent: #93c5fd;  /* Lighter Blue */
  --brand-white: rgba(255,255,255,.9);  /* White accent */
  --ring: rgba(59,130,246,.3);
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.45);
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f7fafc;
    --surface:#ffffff;
    --ink:#0b1020;
    --muted:#667085;
    --brand:#2563eb;
    --brand-ink:#ffffff;
    --brand-light: #3b82f6;
    --brand-accent: #60a5fa;
    --brand-white: rgba(59,130,246,.1);
    --ring: rgba(37,99,235,.25);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  font-family: 'Inter',system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Containers */
.container{width:min(1100px,92%);margin-inline:auto}
.section{padding:6rem 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01))}
.section-head{margin-bottom:2.5rem}
.section-head h2{margin:0 0 .5rem;font-size:clamp(1.4rem,2.8vw,1.9rem);position:relative}
.section-head h2::after{content:"";position:absolute;bottom:-.5rem;left:0;width:60px;height:3px;background:linear-gradient(90deg,var(--brand),var(--brand-light));border-radius:2px}
.muted{color:var(--muted)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(11,16,32,.7);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid rgba(255,255,255,.08)}
.nav{display:flex;justify-content:space-between;align-items:center;padding:.8rem 0;position:relative}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;letter-spacing:.2px}
.brand__logo{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-light));transition:transform .2s}
.brand:hover .brand__logo{transform:scale(1.05)}
.brand__name{white-space:nowrap}
.nav-toggle{display:none;flex-direction:column;gap:4px;background:transparent;border:none;cursor:pointer;padding:.5rem;z-index:100}
.nav-toggle span{width:24px;height:2px;background:var(--ink);border-radius:2px;transition:all .3s ease}
.nav-links{display:flex;gap:.9rem;align-items:center}
.nav a{color:inherit;text-decoration:none;padding:.35rem .55rem;border-radius:10px;border:1px solid transparent;transition:all .2s}
.nav a:hover{border-color:rgba(255,255,255,.12)}
@media (max-width:768px){
  .nav-toggle{display:flex}
  .nav-links{position:fixed;top:0;right:-100%;width:280px;height:100vh;background:rgba(11,16,32,.98);backdrop-filter:blur(20px);flex-direction:column;align-items:flex-start;padding:5rem 2rem 2rem;gap:1rem;transition:right .3s ease;box-shadow:-4px 0 20px rgba(0,0,0,.3)}
  .nav-links.active{right:0}
  .nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(6px,6px)}
  .nav-toggle.active span:nth-child(2){opacity:0}
  .nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px)}
  .brand__name{font-size:.9rem}
}

/* Hero */
.hero{position:relative;isolation:isolate}
.hero-media{position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1505761671935-60b3a7427bad?q=80&w=1960&auto=format&fit=crop') center/cover no-repeat;opacity:.22;z-index:-2}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(80% 60% at 70% 20%,rgba(59,130,246,.35),rgba(147,197,253,.15),transparent 65%);z-index:-1;animation:gradientShift 8s ease-in-out infinite}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,var(--bg),transparent 30%,var(--bg));z-index:-1}
.hero-inner{padding:11rem 0 7rem;text-align:center}
.hero h1{margin:0 0 .8rem;font-size:clamp(28px,5vw,44px);line-height:1.15;font-weight:800}
.lead{color:var(--muted);max-width:760px;margin:0 auto 1.2rem;font-size:1.1rem}
@keyframes gradientShift{0%,100%{opacity:1}50%{opacity:.8}}

/* Grid */
.grid-3{display:grid;gap:1.5rem}
@media (min-width:860px){.grid-3{grid-template-columns:repeat(3,1fr);gap:2rem}}
.grid-2{display:grid;gap:1.5rem}
@media (min-width:860px){.grid-2{grid-template-columns:repeat(2,1fr);gap:2rem}}
.split{display:grid;gap:2rem;align-items:center}
@media (min-width:960px){.split{grid-template-columns:1.1fr 1fr;gap:3rem}}

/* Cards */
.card{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);padding:1.8rem;box-shadow:var(--shadow);transition:all .3s ease;position:relative}
.card h3{margin:.5rem 0 .8rem;font-size:1.25rem;font-weight:600}
.card p{margin:0;line-height:1.7}
.card:hover{border-color:rgba(59,130,246,.4);box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.card.contact{display:grid;gap:1rem;padding:2rem}
.icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(59,130,246,.15),rgba(147,197,253,.1));border:1px solid rgba(59,130,246,.35);margin-bottom:.35rem;transition:all .3s ease}
.card:hover .icon{background:linear-gradient(135deg,rgba(59,130,246,.25),rgba(147,197,253,.15));border-color:var(--brand);transform:scale(1.05)}
.icon svg{width:22px;height:22px;stroke:var(--brand);fill:none;stroke-width:2;transition:stroke .3s}
.card:hover .icon svg{stroke:var(--brand-light)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.1rem;border-radius:12px;border:1px solid rgba(255,255,255,.18);text-decoration:none;transition:all .3s ease;font-weight:500}
.btn:hover{border-color:var(--brand);transform:translateY(-1px);box-shadow:0 4px 12px rgba(59,130,246,.2)}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-light));color:var(--brand-ink);border-color:transparent;box-shadow:var(--shadow)}
.btn-primary:hover{filter:brightness(1.1);box-shadow:0 6px 20px rgba(59,130,246,.4);transform:translateY(-2px)}

/* Media */
.media{position:relative}
.media img{width:100%;height:auto;border-radius:var(--radius);border:1px solid rgba(255,255,255,.12);box-shadow:var(--shadow);transition:transform .3s ease}
.media::after{content:"";position:absolute;inset:0;border-radius:var(--radius);background:linear-gradient(135deg,transparent,rgba(59,130,246,.1));pointer-events:none;opacity:0;transition:opacity .3s}
.media:hover::after{opacity:1}
.media:hover img{transform:scale(1.02)}
.media-placeholder{width:100%;aspect-ratio:4/3;border-radius:var(--radius);border:1px solid rgba(255,255,255,.12);box-shadow:var(--shadow);background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.02));display:grid;place-items:center;position:relative;overflow:hidden}
.media-placeholder::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(59,130,246,.1),rgba(147,197,253,.05));opacity:.5}
.media-placeholder svg{width:80px;height:80px;opacity:.3;z-index:1}

/* Process */
.process-steps{display:grid;gap:2rem;margin-top:2rem}
@media (min-width:768px){.process-steps{grid-template-columns:repeat(2,1fr)}}
.process-step{position:relative;padding:1.5rem;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);transition:all .3s ease}
.process-step:hover{border-color:rgba(59,130,246,.3);transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.process-number{font-size:3rem;font-weight:800;background:linear-gradient(135deg,var(--brand),var(--brand-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;margin-bottom:.5rem;opacity:.3}
.process-step h3{margin:.5rem 0 .6rem;font-size:1.3rem}
.process-step p{margin:0;color:var(--muted)}

/* Contact */
.contact-header{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(255,255,255,.08)}
.contact-header h3{margin:0 0 .5rem;font-size:1.5rem}

/* Form Styles */
.contact-form{display:grid;gap:1.5rem}
.form-group{display:flex;flex-direction:column;gap:.5rem}
.form-group label{font-weight:600;font-size:.95rem;color:var(--ink);display:flex;align-items:center;gap:.3rem}
.form-group label.radio-label{flex-direction:column;align-items:flex-start;gap:.8rem}
.required{color:var(--brand);font-weight:800}
.optional{color:var(--muted);font-weight:400;font-size:.85rem}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea{width:100%;padding:.85rem 1rem;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.12);border-radius:12px;color:var(--ink);font-family:inherit;font-size:1rem;transition:all .3s ease;resize:vertical}
.form-group input:focus,
.form-group textarea:focus{outline:none;border-color:var(--brand);background:rgba(255,255,255,.05);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.form-group input::placeholder,
.form-group textarea::placeholder{color:var(--muted);opacity:.6}
.form-group textarea{min-height:120px;font-family:inherit;line-height:1.6}
.field-help{font-size:.85rem;color:var(--muted);margin-top:-.2rem;line-height:1.5}
.error-message{font-size:.85rem;color:#ef4444;min-height:1.2rem;display:block}
.error-message:empty{display:none}

/* Radio Buttons */
.radio-group{display:flex;flex-direction:column;gap:.6rem}
.radio-option{display:flex;align-items:center;gap:.6rem;cursor:pointer;padding:.6rem;border-radius:10px;border:1px solid rgba(255,255,255,.08);transition:all .2s}
.radio-option:hover{background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.15)}
.radio-option input[type="radio"]{width:18px;height:18px;cursor:pointer;accent-color:var(--brand);margin:0}
.radio-option input[type="radio"]:checked + span{color:var(--brand-light);font-weight:500}
.radio-option span{user-select:none;flex:1}

/* Form Messages */
.form-message{margin-top:.5rem;padding:1rem;border-radius:12px;display:none}
.form-message.success{background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.3);color:#22c55e;display:block}
.form-message.error{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:#ef4444;display:block}
.form-message:empty{display:none}

/* Form Actions */
.form-actions{margin-top:.5rem}
.form-actions button{width:100%;justify-content:center;position:relative}
.btn-loader{display:none}
.btn-loader::after{content:"";width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.form-actions button[disabled]{opacity:.7;cursor:not-allowed}
.form-actions button.loading .btn-text{opacity:0}
.form-actions button.loading .btn-loader{display:block;position:absolute}

/* Form Validation States */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown){border-color:rgba(239,68,68,.5)}
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown){border-color:rgba(34,197,94,.3)}

/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,.08);padding:2rem 0;color:#9aa0a6;font-size:.95rem}
.footer-content{display:grid;gap:1.5rem}
@media (min-width:768px){.footer-content{grid-template-columns:1fr 1fr;align-items:start}}
.footer-copyright{font-size:.9rem}
.footer-contact{display:grid;gap:.8rem}
.footer-contact-item{font-size:.9rem;line-height:1.6}
.footer-contact-item strong{display:inline-block;min-width:60px;color:var(--muted)}
.footer-contact-item a{color:var(--brand-light);text-decoration:none;transition:color .2s}
.footer-contact-item a:hover{color:var(--brand)}

/* Accessibility */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#fff;color:#000;padding:.4rem .6rem;border-radius:8px}

/* Smooth scroll animations */
@media (prefers-reduced-motion: no-preference){
  .section{opacity:1;transform:none}
  .card{opacity:1;transform:none}
  .process-step{opacity:1;transform:none}
}
