/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{margin:0;font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;background:var(--bg-base);color:var(--text-base);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg,video{max-width:100%;display:block}
ul{list-style:none}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit;background:none;border:none}
:focus-visible{outline:2px solid var(--accent-premium);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Variables */
:root{
  --bg-base:#f5f5f7;
  --bg-surface:#ffffff;
  --bg-elevated:#f9fafb;
  --bg-header:rgba(245,245,247,.9);
  --text-base:#0f1012;
  --text-soft:#7d7d82;
  --text-muted:#4b5563;
  --border-color:rgba(15,16,18,.08);
  --accent:#0a0c10;
  --accent-strong:#111827;
  --accent-premium:#cfb37a;
  --accent-premium-rgb:207,179,122;
  --max-width:1120px;
  --radius-card:18px;
  --radius-lg:22px;
  --radius-xl:26px;
  --radius-full:999px;
  --space-xs:.35rem;
  --space-sm:.6rem;
  --space-md:1rem;
  --space-lg:1.5rem;
  --space-xl:2.4rem;
  --transition-smooth:180ms cubic-bezier(.22,1,.36,1);
  --transition-pop:260ms cubic-bezier(.22,1,.36,1);
}
body.theme-dark{
  --bg-base:#020617;
  --bg-surface:#0b1120;
  --bg-elevated:#111827;
  --bg-header:rgba(2,6,23,.95);
  --text-base:#f4f5f7;
  --text-soft:#94a3b8;
  --text-muted:#d1d5db;
  --border-color:rgba(148,163,184,.35);
}

/* Layout */
.page{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
.container{width:min(100%,var(--max-width));margin:0 auto;padding:0 clamp(var(--space-md),4vw,var(--space-xl))}
section{padding:clamp(2.3rem,5vw,3.8rem) 0}

/* Navigation */
header{position:sticky;top:0;z-index:20;background:var(--bg-header);backdrop-filter:blur(22px);border-bottom:1px solid var(--border-color)}
.nav{display:flex;align-items:center;justify-content:space-between;height:clamp(64px,7vw,72px)}
.nav-logo{display:flex;align-items:center;gap:.3rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:1.15rem;transition:transform var(--transition-pop),letter-spacing var(--transition-smooth),color var(--transition-smooth)}
.nav-logo-mark{display:flex;align-items:center;justify-content:center;transition:transform var(--transition-pop)}
.nav-logo:hover{transform:translateY(-1px);letter-spacing:.12em}
.nav-logo:hover .nav-logo-mark{transform:scale(1.06)}
.logo-kanji{color:var(--accent-premium)}
.nav-links{display:flex;align-items:center;gap:1.75rem;font-size:.92rem}
.nav-links a{position:relative;color:var(--text-soft);transition:color var(--transition-smooth)}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-.35rem;width:0;height:2px;background:var(--text-base);border-radius:var(--radius-full);transition:width 220ms ease}
.nav-links a:hover{color:var(--text-base)}
.nav-links a:hover::after{width:100%}
.nav-toggle{display:none;width:42px;height:42px;border-radius:var(--radius-full);border:1px solid var(--border-color);background:var(--bg-surface);align-items:center;justify-content:center}
.nav-toggle-lines{width:18px;height:2px;border-radius:var(--radius-full);background:var(--text-base);position:relative}
.nav-toggle-lines::before,.nav-toggle-lines::after{content:"";position:absolute;left:0;width:100%;height:2px;border-radius:inherit;background:inherit}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}
.nav-links-mobile{display:none;flex-direction:column;gap:var(--space-md);padding:var(--space-md) 0 var(--space-lg);margin-top:.4rem;font-size:.95rem;border-top:1px solid var(--border-color)}
.nav-links-mobile a{color:var(--text-soft)}
header.nav-open .nav-links-mobile{display:flex}
:is(.btn-primary,.btn-ghost,.nav-cta){display:inline-flex;align-items:center;gap:var(--space-sm);border-radius:var(--radius-full);font-size:.9rem;font-weight:500;padding:.75rem 1.35rem;border:1px solid transparent;transition:transform var(--transition-pop),background var(--transition-smooth),color var(--transition-smooth),border-color var(--transition-smooth)}
.nav-cta{background:#000;color:#fff!important}
.nav-cta:hover{background:#111;color:#fff!important}

/* Hero */
.hero{padding:clamp(2.4rem,6vw,3.4rem) 0}
.hero-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(1.3rem,4vw,2.6rem);align-items:center}
.hero-left,.hero-services-text{display:flex;flex-direction:column;gap:clamp(1rem,2vw,1.25rem)}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.18rem .6rem;
  border-radius:var(--radius-full);
  border:1px solid var(--border-color);
  background:rgba(255,255,255,.9);
  font-size:.76rem;
  color:var(--text-soft);
  max-width:max-content;
}
.hero-kicker-dot{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 5px rgba(22,163,74,.18)}
.hero-title{font-size:clamp(2.4rem,4vw,3.15rem);line-height:1.05;letter-spacing:-.03em}
.hero-subtitle{font-size:.98rem;line-height:1.6;color:var(--text-soft);max-width:36rem}
.hero-location{font-size:.82rem;color:#6b7280}
.hero-cta-row{display:flex;flex-wrap:wrap;gap:.85rem;align-items:center}
.hero-reassure{font-size:.82rem;color:#6b7280}
.hero-mockup{position:relative}
.hero-card{padding:1.2rem 1.3rem;border-radius:var(--radius-xl);background:var(--bg-surface);border:1px solid var(--border-color)}
.hero-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-sm)}
.hero-card-title{font-size:.86rem;font-weight:600}
.hero-card-tag{font-size:.72rem;padding:.25rem .55rem;border-radius:var(--radius-full);background:#f3f4f6;color:#4b5563}
.hero-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}
.hero-feed-item{aspect-ratio:4/5;border-radius:18px;background:#000;position:relative;overflow:hidden}
.hero-feed-item:nth-child(2){background:#833ab4}
.hero-feed-item:nth-child(3){background:#212e53}
.hero-feed-item::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 10% 0%,rgba(255,255,255,.25),transparent 60%)}
.hero-badge{position:absolute;right:-10px;bottom:-10px;background:radial-gradient(circle at 0 0,rgba(var(--accent-premium-rgb),.75),transparent 75%),var(--accent);color:#f9fafb;padding:.8rem 1rem;border-radius:18px;font-size:.72rem;border:1px solid rgba(var(--accent-premium-rgb),.8);max-width:200px}
.hero-badge span{display:block;font-weight:600;margin-bottom:.15rem}
.hero-badge small{font-size:.7rem;color:#cbd5f5}

/* Sections */
.section-header{margin-bottom:var(--space-xl)}
.section-kicker{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:#9ca3af;margin-bottom:.4rem}
.section-title{font-size:1.65rem;letter-spacing:-.02em;margin-bottom:.35rem}
.section-desc{font-size:.95rem;color:var(--text-soft);max-width:34rem}
.section-link{display:inline-flex;align-items:center;gap:.4rem;margin-top:var(--space-md);font-size:.88rem;color:#4b5563}
:is(.services-grid,.steps-grid,.projects-grid,.audience-grid,.case-grid,.contact-grid,.pricing-grid,.services-details-grid,.reviews-grid,.faq-grid){display:grid;gap:clamp(1rem,3vw,1.6rem)}
.services-grid,.steps-grid,.projects-grid,.audience-grid,.case-grid,.contact-grid,.services-details-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.projects-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.reviews-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.faq-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.section-services-details,.section-pricing{background:var(--bg-elevated)}
.hero-services-inner{display:flex;flex-direction:column;gap:var(--space-lg)}
.hero-services-note{padding:var(--space-md) var(--space-lg);border-radius:var(--radius-lg);border:1px solid var(--border-color);background:var(--bg-surface);color:var(--text-muted);font-size:.92rem}

/* Cards */
:is(.hero-card,.service-card,.step-card,.audience-card,.faq-item,.contact-card,.contact-form,.case-card,.services-detail-card,.review-card,.map-box){background:var(--bg-surface);border:1px solid var(--border-color)}
.service-card,.step-card,.audience-card,.faq-item,.services-detail-card,.review-card,.case-card,.contact-card,.contact-form{border-radius:var(--radius-lg);padding:var(--space-lg)}
.service-card{display:flex;flex-direction:column;gap:.8rem}
.service-title{font-size:1rem;font-weight:600}
.service-text{font-size:.9rem;color:var(--text-soft)}
.service-list{margin-top:.3rem;display:flex;flex-direction:column;gap:.28rem;font-size:.85rem;color:#6b7280}
.service-list li::before{content:"• \00a0"}
.service-tag{margin-top:auto;font-size:.78rem;color:#9ca3af}
.step-card{display:flex;flex-direction:column;gap:.55rem;background:var(--bg-elevated)}
.step-index{font-size:.78rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.16em}
.step-title{font-size:1rem;font-weight:600}
.step-text{color:var(--text-soft)}
.project-card{position:relative;border-radius:22px;padding:1.1rem;color:#e5e7eb;background:#0a0c10;overflow:hidden;min-height:170px;display:flex}
.project-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 0 0,rgba(var(--accent-premium-rgb),.65),transparent 72%);opacity:.95}
.project-inner{position:relative;z-index:1;display:flex;flex-direction:column;gap:.45rem}
.project-tag{
  font-size:.76rem;
  padding:.16rem .5rem;
  border-radius:var(--radius-full);
  border:1px solid #cda875;
  display:inline-flex;
  align-items:center;
  width:max-content;
}
.project-title{font-size:1rem;font-weight:600}
.project-text{font-size:.85rem;color:#d1d5db}
.project-location{font-size:.78rem;color:#c7cad1}
.audience-card{display:flex;flex-direction:column;gap:.45rem}
.audience-title{font-weight:600}
.audience-text{font-size:.9rem;color:var(--text-soft)}

.service-card:hover,
.project-card:hover,
.audience-card:hover,
.case-card:hover,
.review-card:hover{
  transform:translateY(-2px);
  transition:transform var(--transition-pop),box-shadow var(--transition-smooth);
}
.faq-item{font-size:.92rem;display:flex;flex-direction:column;gap:.35rem}
.faq-q{font-weight:600}
.faq-a{color:var(--text-soft)}
.review-card{display:flex;flex-direction:column;gap:.75rem}
.review-text{font-size:.92rem;color:var(--text-muted)}
.review-author{font-weight:600}
.review-stars{color:var(--accent-premium);font-size:.9rem}
.review-stars svg{fill:var(--accent-premium)}
.services-detail-card{display:flex;flex-direction:column;gap:.6rem}
.services-detail-card strong{font-size:.95rem}
.section-pricing .pricing-grid{gap:clamp(1rem,3vw,1.8rem)}
.pricing-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

@media (min-width:960px){
  .pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.pricing-card{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  min-height:100%;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:var(--radius-lg);
  padding:var(--space-lg);
}
.pricing-card-featured{
  background:var(--bg-surface);
  color:var(--text-base);
  border-color:var(--border-color);
}
.pricing-badge{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:#9ca3af}
.pricing-title{font-size:1.2rem;font-weight:700}
.pricing-desc{font-size:.92rem;color:var(--text-soft)}
.pricing-table{display:flex;flex-direction:column;gap:.65rem;margin:0}
.pricing-row{display:flex;justify-content:space-between;font-size:.9rem;padding:.35rem 0;border-bottom:1px solid rgba(15,16,18,.08)}
.pricing-card-featured .pricing-row{border-bottom-color:rgba(255,255,255,.15)}
.pricing-value{font-weight:600}
.pricing-note{font-size:.82rem;color:#9ca3af}
.pricing-btn{margin-top:auto}
.pricing-card-featured .pricing-desc,
.pricing-card-featured .pricing-note{
  color:var(--text-soft);
}
.pricing-legal{margin-top:var(--space-lg);font-size:.8rem;color:#9ca3af;max-width:600px}

/* CTA */
.cta-final{padding:clamp(2.4rem,6vw,3.6rem) 0}
.cta-box{position:relative;border-radius:26px;background:radial-gradient(circle at 0 0,rgba(var(--accent-premium-rgb),.45),transparent 70%),#0a0c10;color:#f9fafb;padding:2.1rem 2.2rem;overflow:hidden}
.cta-box::before{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at 0 0,rgba(248,250,252,.12),transparent 70%);opacity:.9}
.cta-inner{position:relative;z-index:1;max-width:480px}
.cta-title{font-size:1.65rem;margin-bottom:.6rem}
.cta-text{font-size:.95rem;color:#e5e7eb;margin-bottom:1.5rem}
.cta-meta{font-size:.78rem;color:#9ca3af;margin-top:var(--space-md)}

/* Contact */
.contact-grid{margin-top:var(--space-md)}
.contact-card{display:flex;flex-direction:column;gap:.7rem}
.contact-title{font-size:1.05rem;font-weight:600}
.contact-text{font-size:.9rem;color:var(--text-muted)}
.contact-line{display:flex;flex-direction:column;gap:.2rem;margin-top:.3rem}
.contact-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.16em;color:#9ca3af}
.contact-value{font-size:.95rem;font-weight:600}
.contact-value:hover{text-decoration:underline}
.contact-btn-full{width:100%;justify-content:center}
.contact-note{font-size:.82rem;color:#9ca3af}
.contact-social-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.social-link{display:inline-flex;align-items:center;gap:.55rem;padding:.65rem .95rem;border-radius:var(--radius-full);border:1px solid var(--border-color);background:#f9fafb;transition:transform var(--transition-pop),border-color var(--transition-smooth),background var(--transition-smooth)}
.social-link:hover{border-color:rgba(15,16,18,.25);background:var(--bg-surface);transform:translateY(-1px)}
.icon-circle{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-strong)}
.icon-circle svg{width:16px;height:16px;fill:var(--accent-premium)}
.contact-form{margin-top:.5rem}
.contact-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-md) 1.3rem;margin-bottom:1.1rem}
.form-field{display:flex;flex-direction:column;gap:.35rem;font-size:.86rem}
.form-field label{font-weight:500;color:#374151}
.form-field input,.form-field textarea{border-radius:12px;border:1px solid var(--border-color);padding:.7rem .85rem;font-size:.92rem;background:#f9fafb;transition:border-color var(--transition-smooth),background var(--transition-smooth)}
.form-field input:focus,.form-field textarea:focus{border-color:var(--accent);background:var(--bg-surface)}
.form-field textarea{resize:vertical}
.map-box{border-radius:22px;overflow:hidden;height:380px}
#map{width:100%;height:100%}
.case-card{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem;color:var(--text-muted)}
.case-title{font-size:1rem;font-weight:600}
.case-text-small{font-size:.82rem;color:#9ca3af}
.case-list{display:flex;flex-direction:column;gap:.3rem;font-size:.88rem}
.case-list li::before{content:"• \00a0"}

/* Footer */
footer{border-top:1px solid var(--border-color);padding:1.5rem 0 2rem;font-size:.82rem;color:#6b7280}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-links{display:flex;gap:1.2rem}

/* Dark theme */
body.theme-dark .nav-links a::after{background:#f9fafb}
body.theme-dark .project-card{background:#020817}
body.theme-dark .hero-services-note{background:#0b1120}
body.theme-dark .social-link{background:#0b1120}
body.theme-dark .theme-toggle-fixed{background:#f8fafc;color:var(--accent)}
body.theme-dark #map{filter:grayscale(.25) brightness(.8) contrast(.9)}
body.theme-dark .service-card,
body.theme-dark .audience-card,
body.theme-dark .faq-item,
body.theme-dark .contact-card,
body.theme-dark .contact-form,
body.theme-dark .case-card,
body.theme-dark .hero-card,
body.theme-dark .map-box{background:#020617}
body.theme-dark .service-text,
body.theme-dark .service-list,
body.theme-dark .step-text,
body.theme-dark .project-text,
body.theme-dark .audience-text,
body.theme-dark .faq-a,
body.theme-dark .contact-text,
body.theme-dark .contact-note,
body.theme-dark .pricing-note,
body.theme-dark .pricing-desc{color:#94a3b8}
body.theme-dark footer{color:#9ca3af;border-top-color:var(--border-color)}

/* Global overrides */
.theme-toggle-fixed{position:fixed;right:1.4rem;bottom:1.4rem;width:44px;height:44px;border-radius:var(--radius-full);border:1px solid var(--border-color);background:var(--accent-strong);color:var(--accent-premium);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.1rem;z-index:90;transition:transform var(--transition-pop),background var(--transition-smooth),color var(--transition-smooth)}
.theme-toggle-fixed:hover{transform:translateY(-2px)}
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1)}
.reveal-visible{opacity:1;transform:none}
/* Staggered reveal for cards */
.services-grid>.reveal:nth-child(1),
.projects-grid>.reveal:nth-child(1),
.audience-grid>.reveal:nth-child(1),
.reviews-grid>.reveal:nth-child(1){transition-delay:40ms}
.services-grid>.reveal:nth-child(2),
.projects-grid>.reveal:nth-child(2),
.audience-grid>.reveal:nth-child(2),
.reviews-grid>.reveal:nth-child(2){transition-delay:80ms}
.services-grid>.reveal:nth-child(3),
.projects-grid>.reveal:nth-child(3),
.audience-grid>.reveal:nth-child(3),
.reviews-grid>.reveal:nth-child(3){transition-delay:120ms}
.services-grid>.reveal:nth-child(4),
.projects-grid>.reveal:nth-child(4),
.audience-grid>.reveal:nth-child(4),
.reviews-grid>.reveal:nth-child(4){transition-delay:160ms}
.btn-primary{background:var(--accent-strong);color:#fff}
.btn-primary:hover{background:var(--accent);transform:translateY(-2px)}
.btn-ghost{background:var(--bg-surface);border-color:var(--border-color)}
.btn-ghost:hover{border-color:rgba(15,16,18,.32);background:#fff;transform:translateY(-2px)}

/* Shadow override */
.btn-primary,
.btn-primary:hover,
.btn-ghost,
.btn-ghost:hover,
.nav-cta,
.service-card,
.project-card,
.audience-card,
.cta-box,
.contact-card,
.hero-card,
.contact-form,
.map-box{
  box-shadow:0 3px 10px rgba(0,0,0,.06);
}

body.theme-dark .btn-primary,
body.theme-dark .btn-primary:hover,
body.theme-dark .btn-ghost,
body.theme-dark .btn-ghost:hover,
body.theme-dark .nav-cta,
body.theme-dark .service-card,
body.theme-dark .project-card,
body.theme-dark .audience-card,
body.theme-dark .cta-box,
body.theme-dark .contact-card,
body.theme-dark .hero-card,
body.theme-dark .contact-form,
body.theme-dark .map-box{
  box-shadow:0 3px 12px rgba(0,0,0,.3);
}

/* Media queries */
@media (max-width:960px){
  .nav-links{display:none}
  .nav-toggle{display:inline-flex}
}
@media (max-width:720px){
  .hero{padding:2rem 0 2.6rem}
  section{padding:2.2rem 0}
  .cta-final{padding:2.4rem 0}
  .footer-links{flex-direction:column;align-items:flex-start}
}
@media (max-width:540px){
  .hero-cta-row{flex-direction:column;align-items:stretch}
  .btn-primary,.btn-ghost{justify-content:center;width:100%}
  .hero-feed{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}
  .pricing-row{flex-direction:column;align-items:flex-start;gap:.15rem}
}
