/* =========================================================
   N02.gr — Building Digital Success
   Tokens
   ---------------------------------------------------------
   Black      #0A0A0A
   Anthracite #1A1A1D
   Slate      #2B2B30
   Off-white  #F5F4F2
   Stone      #B9B5AE
   Gold       #C9A14A
   Gold-soft  #E8D9B5
   ========================================================= */

:root{
  --black: #0A0A0A;
  --anthracite: #16161A;
  --slate: #232328;
  --off-white: #F5F4F2;
  --stone: #9C9690;
  --gold: #C9A14A;
  --gold-soft: #E8D9B5;
  --line: rgba(245,244,242,0.10);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --section-pad: clamp(64px, 10vw, 128px);

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

/* ============ RESET ============ */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; line-height:1.15; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

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

.accent{ color: var(--gold); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ EYEBROW / SECTION HEADS ============ */
.eyebrow{
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.eyebrow::before{
  content:"";
  display:inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-head{
  margin-bottom: clamp(36px, 6vw, 64px);
  max-width: 640px;
}
.section-head h2{ font-size: clamp(1.9rem, 4vw, 2.6rem); }

h2 .accent, h1 .accent{ display:inline; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 15px 32px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover{
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.btn-ghost{
  background: transparent;
  color: var(--off-white);
  border-color: var(--line);
}
.btn-ghost:hover{
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============ HEADER ============ */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 76px;
}
.logo{ color: var(--off-white); display:flex; align-items:center; }
.logo-mark{ width: 116px; height: 32px; color: var(--off-white); }
.logo-o2{
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  fill: var(--gold);
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a{
  color: var(--stone);
  position: relative;
  transition: color .25s var(--ease);
}
.main-nav a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:0; bottom:-6px;
  width:0; height:1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:not(.nav-cta):hover{ color: var(--off-white); }
.main-nav a:not(.nav-cta):hover::after{ width:100%; }

.nav-cta{
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover{
  background: var(--gold);
  color: var(--black) !important;
}

.nav-toggle{
  display:none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  flex-direction: column;
  justify-content:center;
  gap: 5px;
}
.nav-toggle span{
  display:block; width:22px; height:2px; margin:0 auto;
  background: var(--off-white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow: hidden;
  padding-top: 76px;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow{
  position:absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(201,161,74,0.16) 0%, transparent 70%);
  filter: blur(10px);
}
.hero-slash{
  position:absolute; inset:0;
  width:100%; height:100%;
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero h1{
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 18px 0 26px;
}
.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--stone);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ ABOUT ============ */
.about{
  padding: var(--section-pad) 0;
  background: var(--anthracite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-text h2{
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 24px;
}
.about-text p{
  color: var(--stone);
  margin-bottom: 18px;
  max-width: 480px;
}
.about-pillars{
  display:flex;
  flex-direction: column;
  gap: 28px;
}
.pillar{
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.pillar-num{
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.pillar h3{
  font-size: 1.15rem;
  margin: 10px 0 8px;
}
.pillar p{
  color: var(--stone);
  font-size: 0.95rem;
  max-width: 360px;
}

/* ============ SERVICES ============ */
.services{ padding: var(--section-pad) 0; }
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--black);
  padding: 36px 28px;
  transition: background .35s var(--ease);
  position: relative;
}
.service-card:hover{
  background: var(--anthracite);
}
.service-card:hover .service-icon{
  color: var(--gold);
  transform: translateY(-2px);
}
.service-icon{
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--off-white);
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.service-icon svg{ width:100%; height:100%; }
.service-icon svg *{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3{
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.service-card p{
  color: var(--stone);
  font-size: 0.92rem;
}

/* ============ WHY ============ */
.why{
  padding: var(--section-pad) 0;
  background: var(--anthracite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px 48px;
}
.why-item{
  position: relative;
  padding-left: 28px;
}
.why-item::before{
  content:"";
  position:absolute;
  left:0; top: 6px;
  width: 12px; height: 12px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}
.why-item h3{
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.why-item p{
  color: var(--stone);
  font-size: 0.95rem;
}

/* ============ PROCESS ============ */
.process{ padding: var(--section-pad) 0; }
.process-steps{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.process-steps li{
  padding: 0 32px 0 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  position: relative;
}
.process-steps li:first-child{
  border-left: none;
  padding-left: 0;
}
.step-num{
  display:block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.process-steps h3{
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.process-steps p{
  color: var(--stone);
  font-size: 0.95rem;
  max-width: 260px;
}

/* ============ STATISTICS ============ */
.stats{
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--anthracite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number, .stat-number-static{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.stat-label{
  font-size: 0.92rem;
  color: var(--stone);
  letter-spacing: 0.02em;
}

/* ============ CTA ============ */
.cta{
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,161,74,0.10), transparent 70%);
  pointer-events: none;
}
.cta-inner{ position:relative; }
.cta h2{
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 760px;
  margin: 0 auto 36px;
}

/* ============ CONTACT ============ */
.contact{
  padding: var(--section-pad) 0;
  background: var(--anthracite);
  border-top: 1px solid var(--line);
}
.contact-inner{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-info h2{
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 20px;
}
.contact-info p{
  color: var(--stone);
  max-width: 420px;
  margin-bottom: 28px;
}
.contact-email{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  margin-bottom: 14px;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.contact-email:hover{ opacity: 0.8; }
.contact-area{
  color: var(--stone);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.contact-form{
  display:flex;
  flex-direction: column;
  gap: 20px;
}
.form-row{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label{
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}
.form-row input,
.form-row textarea{
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--off-white);
  transition: border-color .25s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus{
  border-color: var(--gold);
  outline: none;
}
.form-submit{ margin-top: 6px; align-self: flex-start; }
.form-status{
  font-size: 0.9rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* ============ FOOTER ============ */
.site-footer{
  padding: 48px 0;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.footer-inner{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-tagline{
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-copy{
  font-size: 0.85rem;
  color: var(--stone);
}

/* ============ BACK TO TOP ============ */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 2px;
  background: var(--gold);
  border: none;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover{ background: var(--gold-soft); }
.back-to-top svg{
  width: 20px; height: 20px;
}
.back-to-top svg path{
  fill:none; stroke: var(--black); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}

/* ============ SCROLL ANIMATIONS ============ */
[data-animate]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-animate].is-visible{
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"]{ --d: 1; }
[data-animate][data-delay="2"]{ --d: 2; }
[data-animate][data-delay="3"]{ --d: 3; }
[data-animate][data-delay="4"]{ --d: 4; }
[data-animate][data-delay="5"]{ --d: 5; }
[data-animate][data-delay="6"]{ --d: 6; }

@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior: auto; }
  .btn, .back-to-top, .main-nav a::after{ transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .about-inner, .contact-inner{
    grid-template-columns: 1fr;
  }
  .process-steps{
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }
  .process-steps li{
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .process-steps li:first-child{ border-top: none; padding-top:0; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 76px; left:0; right:0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.is-open{
    opacity:1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.nav-cta{ border: 1px solid var(--gold); text-align:center; margin-top: 8px; }
  .nav-toggle{ display:flex; }

  .services-grid{ grid-template-columns: 1fr; }
  .process-steps{ grid-template-columns: 1fr; }
  .process-steps li{ border-top: 1px solid var(--line); padding-top: 24px; padding-left:0; border-left:none; }
  .process-steps li:first-child{ border-top:none; padding-top:0; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px){
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
}
