/*
 Theme Name:   Arakani
 Theme URI:    https://arakani.com
 Description:  Arakani Solutions — Modern dark tech theme
 Author:       Arakani Solutions
 Author URI:   https://arakani.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  arakani
 Tags:         dark, modern, tech, business, one-page
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Variables ── */
:root {
  --bg:       #080C10;
  --surface:  #0E1318;
  --surface2: #141B22;
  --border:   rgba(255,255,255,0.07);
  --accent:   #00E5FF;
  --accent2:  #7B61FF;
  --text:     #F0F4F8;
  --muted:    #6B7A8D;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(44px,7vw,88px); font-weight: 800; }
h2 { font-size: clamp(30px,4vw,52px); font-weight: 800; }
h3 { font-size: clamp(18px,2.5vw,26px); font-weight: 700; }
p  { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 18px 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

#masthead.scrolled { padding: 12px 56px; }

.site-branding a {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px;
}

.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}

/* Primary menu */
#primary-menu {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}

#primary-menu > li > a {
  color: var(--muted);
  font-size: 14px; font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

#primary-menu > li > a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}

#primary-menu > li > a:hover { color: var(--text); }
#primary-menu > li > a:hover::after { transform: scaleX(1); }

#primary-menu > li.menu-cta > a {
  background: var(--accent); color: #080C10 !important;
  padding: 10px 22px; border-radius: 6px;
  font-weight: 500;
}

#primary-menu > li.menu-cta > a::after { display: none; }
#primary-menu > li.menu-cta > a:hover {
  background: #33EAFF;
  box-shadow: 0 0 24px rgba(0,229,255,0.35);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}

.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 56px 80px;
  position: relative; overflow: hidden;
}

.hero-glow {
  position: absolute; top: -20%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute; bottom: -20%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,97,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.12) 0%, transparent 100%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent);
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 32px; width: fit-content;
  animation: fadeUp 0.8s ease both;
}

.hero-tag span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

#hero h1 {
  animation: fadeUp 0.8s 0.1s ease both;
}

.accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 24px;
  font-size: 18px; color: var(--muted);
  max-width: 500px; line-height: 1.7;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  margin-top: 44px;
  display: flex; gap: 16px; align-items: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--accent); color: #080C10;
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font-body);
}

.btn-primary:hover {
  background: #33EAFF; color: #080C10;
  box-shadow: 0 0 32px rgba(0,229,255,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--muted); font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s; font-family: var(--font-body);
}

.btn-ghost:hover { color: var(--text); }

.hero-stats {
  margin-top: 72px;
  display: flex; gap: 48px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat-item { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  line-height: 1; letter-spacing: -1px;
  color: var(--text);
}

.stat-num em { color: var(--accent); font-style: normal; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.stat-divider {
  width: 1px; height: 40px; background: var(--border);
  align-self: center;
}

/* ══════════════════════════════════════════
   SECTIONS BASE
══════════════════════════════════════════ */
.ak-section {
  padding: 100px 56px;
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.section-sub {
  color: var(--muted); font-size: 16px;
  max-width: 480px; margin-top: 14px; line-height: 1.7;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  background: var(--border);
}

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.3s;
  position: relative; overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover { background: var(--surface2); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 22px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
}

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p  { font-size: 14px; }

.service-arrow {
  margin-top: 24px; color: var(--accent);
  font-size: 20px; display: inline-block;
  transition: transform 0.2s;
}

.service-card:hover .service-arrow { transform: translate(4px,-4px); }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.about-visual { position: relative; }

.about-img-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--surface);
}

.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.7;
  filter: saturate(0.6);
}

.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800;
  color: var(--accent); letter-spacing: -1px;
}

.about-badge-label { font-size: 12px; color: var(--muted); }

.about-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }

.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--muted);
}

.about-list li::before {
  content: '✓'; color: #080C10;
  font-weight: 700; font-size: 11px;
  background: var(--accent); border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ══════════════════════════════════════════
   PROCESS
══════════════════════════════════════════ */
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 32px; margin-top: 60px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
}

.process-step { text-align: center; }

.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  margin: 0 auto 22px;
  position: relative; z-index: 1;
  transition: all 0.3s;
}

.process-step:hover .step-num {
  background: var(--accent); color: #080C10;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0,229,255,0.4);
}

.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p  { font-size: 14px; }

/* ══════════════════════════════════════════
   TESTIMONIAL
══════════════════════════════════════════ */
#testimonial {
  background: var(--surface);
  text-align: center;
}

.testimonial-inner { max-width: 760px; margin: 0 auto; }

.quote-mark {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 800;
  color: var(--accent); line-height: 0.6;
  margin-bottom: 28px; opacity: 0.4;
}

.testimonial-text {
  font-size: clamp(19px,2.5vw,27px);
  font-weight: 300; line-height: 1.5;
  color: var(--text); letter-spacing: -0.2px;
}

.testimonial-author {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #080C10;
}

.author-info { text-align: left; }
.author-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.author-role { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════════
   FAQ + CONTACT
══════════════════════════════════════════ */
.faq-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; margin-top: 60px; align-items: start;
}

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; cursor: pointer; }

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--text); gap: 16px; user-select: none;
}

.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: var(--muted);
  transition: all 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--accent); color: #080C10;
  border-color: var(--accent); transform: rotate(45deg);
}

.faq-a {
  font-size: 14px; color: var(--muted);
  line-height: 1.7; max-height: 0;
  overflow: hidden; transition: all 0.35s ease;
}

.faq-item.open .faq-a { max-height: 200px; padding-top: 14px; }

/* Contact card */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  position: sticky; top: 100px;
}

.contact-card h3 {
  font-size: 24px; margin-bottom: 6px; color: var(--text);
}

.contact-card > p { font-size: 14px; margin-bottom: 26px; }

.contact-field {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  margin-bottom: 12px; outline: none;
  transition: border-color 0.2s;
}

.contact-field:focus { border-color: var(--accent); }
.contact-field::placeholder { color: var(--muted); }
textarea.contact-field { resize: vertical; min-height: 100px; }

.contact-submit {
  width: 100%; background: var(--accent); color: #080C10;
  border: none; border-radius: 8px; padding: 14px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.25s; margin-top: 4px;
}

.contact-submit:hover {
  background: #33EAFF;
  box-shadow: 0 0 24px rgba(0,229,255,0.35);
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
#cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  position: relative; overflow: hidden;
}

.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

#cta-section h2 { max-width: 680px; margin: 0 auto 20px; }
#cta-section p  { max-width: 420px; margin: 0 auto 36px; font-size: 17px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#colophon {
  border-top: 1px solid var(--border);
  padding: 44px 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface);
  position: relative; z-index: 1;
}

.footer-brand a {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--text) !important;
  display: flex; align-items: center; gap: 10px;
}

.footer-copy { font-size: 13px; color: var(--muted); margin-top: 6px; }

#footer-menu {
  display: flex; gap: 28px; list-style: none;
}

#footer-menu a {
  font-size: 14px; color: var(--muted);
  transition: color 0.2s;
}

#footer-menu a:hover { color: var(--text); }

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px;
  transition: all 0.2s; text-decoration: none;
}

.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

.reveal { opacity:0; transform:translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ══════════════════════════════════════════
   INNER PAGES (blog, pages, etc.)
══════════════════════════════════════════ */
.page-hero {
  padding: 160px 56px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-main {
  padding: 80px 56px;
  max-width: 900px;
  margin: 0 auto;
}

.entry-title { color: var(--text); margin-bottom: 24px; }

.entry-content p   { color: var(--muted); margin-bottom: 18px; }
.entry-content h2,
.entry-content h3  { color: var(--text); margin: 32px 0 14px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  #masthead { padding: 16px 24px; }
  #primary-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px 28px; gap: 20px; }
  #primary-menu.open { display: flex; }
  .menu-toggle { display: flex; }
  #hero { padding: 120px 24px 60px; }
  .hero-grid { display: none; }
  .ak-section { padding: 64px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { bottom: -10px; right: 10px; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
  .faq-contact-grid { grid-template-columns: 1fr; }
  #colophon { flex-direction: column; gap: 24px; text-align: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .page-hero { padding: 120px 24px 60px; }
  .site-main { padding: 48px 24px; }
}
