/* =========================================================
   CODEATRIX — style.css
   Vanilla CSS. No CSS custom properties — every color below
   is a direct hex code from the Codeatrix brand palette.
   ========================================================= */

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', sans-serif;
  background:#FFFFFF;
  color:#091130;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  background-image:
    linear-gradient(#EEF0F8 1px, transparent 1px),
    linear-gradient(90deg, #EEF0F8 1px, transparent 1px);
  background-size:48px 48px;
  background-position:-1px -1px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}
h1,h2,h3,h4{font-family:'Space Grotesk', sans-serif; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#28296E;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{content:''; width:7px; height:7px; background:#645BFF; border-radius:50%; display:inline-block;}
.accent-eyebrow{color:#645BFF;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 24px;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(0.97);}
.btn-primary{background:#4438A4; color:#FFFFFF;}
.btn-primary:hover{background:#3730A3; box-shadow:0 6px 18px rgba(68,56,164,0.32);}
.btn-outline{background:transparent; border-color:#4438A4; color:#4438A4;}
.btn-outline:hover{background:#E3F1FF;}

.btn:focus-visible{outline:3px solid #28296E; outline-offset:2px;}

/* ===== NAV ===== */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #E5E7F3;
}
nav{display:flex; align-items:center; justify-content:space-between; padding:18px 0;}
.logo{display:flex; align-items:center; gap:11px;}
.logo-mark{width:clamp(34px, 4.4vw, 46px); height:clamp(34px, 4.4vw, 46px); flex-shrink:0; object-fit:contain;}
.logo-word{height:clamp(19px, 2.6vw, 26px); width:auto; display:block; object-fit:contain;}
section[id]{scroll-margin-top:88px;}
.nav-links{display:flex; align-items:center; gap:34px;}
.nav-links > a{font-size:14.5px; font-weight:600; color:#5F6485; position:relative; padding:6px 0;}
.nav-links > a:hover{color:#091130;}
.nav-cta{display:flex; align-items:center; gap:14px;}
.has-dropdown{position:relative;}
.dropdown{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
  background:#FCFCFE; border:1px solid #E5E7F3; border-radius:14px;
  padding:14px; width:520px;
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  box-shadow:0 20px 40px rgba(9,17,48,0.12);
  opacity:0; visibility:hidden; transform:translateX(-50%) translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.dropdown a{
  display:flex; flex-direction:column; gap:2px;
  padding:11px 12px; border-radius:8px; font-size:14px; font-weight:600; color:#091130;
}
.dropdown a:hover{background:#F6F7FB;}
.dropdown a span{font-size:12.5px; font-weight:400; color:#5F6485;}
.menu-toggle{display:none; background:none; border:none; cursor:pointer; padding:6px; color:#091130;}
.menu-toggle svg{width:26px; height:26px;}

/* ===== HERO ===== */
.hero{padding:76px 0 60px;}
.hero-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;}
.hero h1{font-size:clamp(32px, 5vw, 58px); line-height:1.06; font-weight:700; margin:18px 0 20px;}
.hero h1 em{font-style:normal; color:#645BFF;}
.hero p.lead{font-size:18px; color:#5F6485; max-width:480px; margin-bottom:32px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px;}
.hero-stats{display:flex; gap:36px; flex-wrap:wrap;}
.hero-stat b{display:block; font-family:'Space Grotesk'; font-size:22px; color:#091130;}
.hero-stat span{font-size:12.5px; color:#5F6485; text-transform:uppercase; letter-spacing:0.05em;}

/* Blueprint hero illustration */
.blueprint{
  background:#FCFCFE; border:1.5px solid #E5E7F3; border-radius:16px;
  padding:22px; position:relative;
  box-shadow:0 24px 50px rgba(9,17,48,0.08);
}
.blueprint-header{display:flex; align-items:center; gap:8px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px dashed #E5E7F3;}
.blueprint-header .dots{display:flex; gap:6px;}
.blueprint-header .dots span{width:9px; height:9px; border-radius:50%; background:#E5E7F3;}
.blueprint-header .label{margin-left:auto; font-family:'IBM Plex Mono'; font-size:11.5px; color:#5F6485;}
.blueprint svg{width:100%; height:auto; display:block;}

/* ===== SECTIONS ===== */
section{padding:88px 0;}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head h2{font-size:clamp(28px,4vw,42px); margin:14px 0 12px; font-weight:700; color:#091130;}
.section-head p{color:#5F6485; font-size:16.5px;}
.section-head em{font-style:normal; color:#645BFF;}

/* About */
.about-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center;}
.about-lead{font-size:16.5px; color:#5F6485; max-width:520px; margin:16px 0 26px;}
.about-points{list-style:none; display:flex; flex-direction:column; gap:16px; max-width:500px;}
.about-points li{font-size:15px; color:#091130; display:flex; align-items:flex-start; gap:12px; line-height:1.5;}
.about-points li svg{width:19px; height:19px; color:#16A34A; flex-shrink:0; margin-top:2px;}
.manifesto{display:flex; flex-direction:column; gap:13px; padding:6px 2px;}
.manifesto div{display:flex; gap:8px; font-size:13px; flex-wrap:wrap;}
.manifesto .m-key{color:#28296E; font-weight:500;}
.manifesto .m-eq{color:#8B8AB2;}
.manifesto .m-val{color:#645BFF;}

/* Services */
.services-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;}
.service-card{
  background:#FCFCFE; border:1px solid #E5E7F3; border-radius:14px;
  padding:26px 22px; position:relative; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{transform:translateY(-4px); box-shadow:0 18px 34px rgba(9,17,48,0.1); border-color:#28296E;}
.service-num{
  font-family:'IBM Plex Mono'; font-size:13px; color:#8B8AB2;
  position:absolute; top:20px; right:20px; font-weight:500;
}
.service-icon{width:38px; height:38px; margin-bottom:16px; color:#28296E;}
.service-card h3{font-size:17.5px; margin-bottom:10px; padding-right:30px; color:#091130;}
.service-card ul{list-style:none; display:flex; flex-direction:column; gap:6px;}
.service-card li{font-size:13.5px; color:#5F6485; padding-left:14px; position:relative;}
.service-card li::before{content:'—'; position:absolute; left:0; color:#8B8AB2;}

/* Work */
.work-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:22px;}
.work-card{
  background:#FCFCFE; border:1px solid #E5E7F3; border-radius:14px;
  padding:0; overflow:hidden; display:flex; flex-direction:column;
}
.work-visual{
  aspect-ratio:16/9; background:#F6F7FB; position:relative; overflow:hidden;
  border-bottom:1px solid #E5E7F3;
}
.work-visual .work-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.work-tag{
  position:absolute; top:14px; left:14px; background:#FCFCFE; border:1px solid #E5E7F3;
  padding:4px 10px; border-radius:20px; font-family:'IBM Plex Mono'; font-size:11px; color:#28296E; font-weight:500;
}
.work-body{padding:22px 24px 26px;}
.work-body h3{font-size:19px; margin-bottom:8px; color:#091130;}
.work-body p{font-size:14.5px; color:#5F6485; margin-bottom:14px;}
.work-body a.visit{font-size:13.5px; font-weight:600; color:#645BFF; display:inline-flex; align-items:center; gap:5px;}
.work-body a.visit:hover{text-decoration:underline;}


/* Process */
.process-list{display:flex; flex-direction:column;}
.process-item{
  display:grid; grid-template-columns:80px 1fr; gap:24px; padding:26px 0; border-bottom:1px solid #E5E7F3;
  align-items:start;
}
.process-item:first-child{border-top:1px solid #E5E7F3;}
.process-num{font-family:'IBM Plex Mono'; font-size:26px; color:#8B8AB2; font-weight:500;}
.process-item h3{font-size:19px; margin-bottom:6px; color:#091130;}
.process-item p{color:#5F6485; font-size:14.5px; max-width:520px;}



/* Contact */
.contact-section{
  background:#091130; color:#FFFFFF; border-radius:20px; padding:60px 50px; margin:0 auto;
  max-width:1180px; position:relative; overflow:hidden;
}
.contact-section::before{
  content:''; position:absolute; top:0; left:0; right:0; height:6px;
  background:linear-gradient(90deg, #091130 0%, #28296E 35%, #4438A4 70%, #645BFF 100%);
}
.contact-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center;}
.contact-section h2{color:#FFFFFF; font-size:clamp(26px,4vw,38px); margin-bottom:14px;}
.contact-section p{color:#8B8AB2; font-size:16px; max-width:440px; margin-bottom:30px;}
.contact-methods{display:flex; flex-direction:column; gap:12px;}
.contact-method{
  display:flex; align-items:center; gap:14px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  border-radius:10px; padding:16px 18px; transition:background .15s ease, border-color .15s ease;
}
.contact-method:hover{background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.3);}
.contact-method .icon{
  width:42px; height:42px; border-radius:9px; background:#645BFF; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-method .icon svg{width:22px; height:22px; color:#FFFFFF;}
.contact-method b{display:block; font-size:15px; color:#FFFFFF;}
.contact-method span{font-size:13px; color:#8B8AB2;}
.contact-visual{
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.14); border-radius:14px; padding:22px;
  font-family:'IBM Plex Mono'; font-size:13px; color:#8B8AB2; line-height:1.9;
}
.contact-visual .line{color:#FFFFFF;}
.contact-visual .accent-text{color:#645BFF;}

/* Footer */
footer{background:#091130; color:#FFFFFF; margin-top:20px; padding-top:64px; position:relative; overflow:hidden;}
footer::before{
  content:''; position:absolute; top:0; left:0; right:0; height:6px;
  background:linear-gradient(90deg, #091130 0%, #28296E 35%, #4438A4 70%, #645BFF 100%);
}
.footer-logo-word{filter:brightness(0) invert(1);}
.footer-grid{display:grid; grid-template-columns:1.3fr 0.8fr 0.9fr 1.1fr; gap:40px; padding-bottom:48px;}
.footer-brand p{color:#8B8AB2; font-size:14px; line-height:1.65; margin:18px 0 22px; max-width:320px;}
.footer-social{display:flex; gap:10px;}
.footer-social a{
  width:36px; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  transition:background .15s ease, border-color .15s ease;
}
.footer-social a:hover{background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.32);}
.footer-social svg{width:16px; height:16px; color:#FFFFFF;}
.footer-col{display:flex; flex-direction:column; gap:13px;}
.footer-col h4{
  font-family:'Space Grotesk'; font-size:15px; font-weight:600; color:#FFFFFF;
  margin-bottom:6px; position:relative; padding-bottom:12px;
}
.footer-col h4::after{content:''; position:absolute; left:0; bottom:0; width:28px; height:2px; background:#645BFF;}
.footer-col > a{font-size:13.5px; color:#8B8AB2; font-weight:500; transition:color .15s ease;}
.footer-col > a:hover{color:#FFFFFF;}
.footer-contact-item{display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:#8B8AB2; line-height:1.4;}
.footer-contact-item svg{width:16px; height:16px; flex-shrink:0; margin-top:1px; color:#645BFF;}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  border-top:1px solid rgba(255,255,255,0.1); padding:22px 0;
}
footer .copy{font-size:13px; color:#8B8AB2;}
.footer-bottom .footer-links{display:flex; gap:22px;}
.footer-bottom .footer-links a{font-size:13px; color:#8B8AB2; font-weight:500;}
.footer-bottom .footer-links a:hover{color:#FFFFFF;}

.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ===== RESPONSIVE ===== */
@media (max-width:980px){
  .services-grid{grid-template-columns:repeat(2, 1fr);}
  .work-grid{grid-template-columns:1fr;}

  .hero-grid{grid-template-columns:1fr;}
  .blueprint{order:-1;}
  .contact-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr; gap:36px;}
  .about-visual{order:-1;}
  .about-lead, .about-points{max-width:none;}
  .footer-grid{grid-template-columns:1fr 1fr; row-gap:36px;}
  .footer-brand{grid-column:1 / -1;}
}
@media (max-width:760px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0; height:100vh; background:#FFFFFF;
    flex-direction:column; align-items:flex-start; padding:26px 28px 100px; gap:22px;
    transform:translateX(-100%); transition:transform .25s ease; overflow-y:auto;
  }
  .nav-links.open{transform:translateX(0);}
  
  .has-dropdown .dropdown{
    position:static; transform:none; opacity:1; visibility:visible; width:100%;
    grid-template-columns:1fr; display:none; box-shadow:none; border:none; padding:8px 0 0 0;
  }
  
  /* THIS BLOCK FIXES THE HOVER ISSUE ON MOBILE */
  .has-dropdown:hover .dropdown, 
  .has-dropdown:focus-within .dropdown {
    transform: none; 
  }
  
  .has-dropdown.open .dropdown{display:grid;}
  
  .menu-toggle{display:block;}
  .nav-cta .btn-outline{display:none;}
  .services-grid{grid-template-columns:1fr;}
  .contact-section{padding:40px 24px; border-radius:16px;}
  .process-item{grid-template-columns:50px 1fr;}
  section{padding:64px 0;}
  .hero{padding:48px 0 40px;}
  footer{padding-top:48px;}
  .footer-grid{grid-template-columns:1fr; gap:32px; padding-bottom:36px;}
  .footer-brand{grid-column:auto;}
  .footer-bottom{justify-content:center; text-align:center; flex-direction:column;}
}
@media (max-width:480px){
  .wrap{padding:0 18px;}
  .hero-actions{flex-direction:column; align-items:stretch;}
  .hero-actions .btn{justify-content:center;}
  .hero-stats{gap:22px;}
  .contact-section{padding:32px 18px;}
  .price-card{padding:24px 20px;}
}