/* ============================================================
   PiTech — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-2:      #f5f5f7;
  --bg-3:      #e8e8ed;
  --fg:        #1d1d1f;
  --fg-2:      #6e6e73;
  --fg-3:      #a1a1a6;
  --accent:    #0071e3;
  --accent-2:  #5856d6;
  --accent-g:  linear-gradient(135deg, #0071e3 0%, #5856d6 100%);
  --border:    rgba(0,0,0,0.08);
  --glass:     rgba(255,255,255,0.75);
  --shadow-s:  0 2px 16px rgba(0,0,0,0.06);
  --shadow-m:  0 8px 40px rgba(0,0,0,0.10);
  --shadow-l:  0 24px 80px rgba(0,0,0,0.14);
  --radius:    20px;
  --radius-s:  12px;
  --nav-h:     64px;
  --ease:      cubic-bezier(0.25,0.46,0.45,0.94);
}

[data-theme="dark"] {
  --bg:        #000000;
  --bg-2:      #111111;
  --bg-3:      #1d1d1f;
  --fg:        #f5f5f7;
  --fg-2:      #86868b;
  --fg-3:      #515154;
  --border:    rgba(255,255,255,0.08);
  --glass:     rgba(0,0,0,0.75);
  --shadow-s:  0 2px 16px rgba(0,0,0,0.4);
  --shadow-m:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-l:  0 24px 80px rgba(0,0,0,0.8);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);   font-weight: 700; line-height: 1.1;  letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem);    font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p  { font-size: 1.0625rem; line-height: 1.7; color: var(--fg-2); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: 120px 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 72px; }
.section-head p { margin-top: 16px; font-size: 1.125rem; }

/* ── Navbar ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em;
  background: var(--accent-g);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem; font-weight: 500; color: var(--fg-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Dark mode toggle */
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
}
.theme-btn:hover { background: var(--bg-3); transform: scale(1.08); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px; flex-direction: column; gap: 16px; z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.125rem; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 980px;
  font-size: 0.9375rem; font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-g);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,113,227,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,113,227,0.45);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-3); transform: translateY(-2px); }

.btn-ghost {
  color: var(--accent);
  padding: 12px 0;
}
.btn-ghost:hover { opacity: 0.75; }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0071e3, transparent 70%);
  top: -20%; left: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #5856d6, transparent 70%);
  bottom: -10%; right: -5%;
  animation-delay: -4s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #30d158, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -8s;
  opacity: 0.15;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(12px); border-radius: 980px;
  padding: 8px 18px; font-size: 0.875rem; font-weight: 500;
  color: var(--fg-2); margin-bottom: 28px;
}
.hero-badge span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30d158; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(48,209,88,0); }
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 600px; margin: 0 auto 40px; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 72px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.hero-stat span { font-size: 0.875rem; color: var(--fg-2); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: rgba(0,113,227,0.25);
}

.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-s);
  background: var(--accent-g);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,113,227,0.3);
}

.card h3 { margin-bottom: 10px; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ── Services Page ──────────────────────────────────────────── */
.service-hero {
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  text-align: center;
}

.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0; border-bottom: 1px solid var(--border);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--accent-g); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,113,227,0.3);
}

.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9375rem; color: var(--fg-2);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-g);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  background-image: var(--accent-g);
}
.check-icon { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.service-visual {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.service-visual-row {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.svc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-g); flex-shrink: 0; }
.svc-label { font-size: 0.875rem; font-weight: 500; }
.svc-status { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: #30d158; background: rgba(48,209,88,0.12); padding: 3px 10px; border-radius: 980px; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }

.pricing-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }

.pricing-card.featured {
  background: var(--fg); color: var(--bg);
  border-color: transparent;
  box-shadow: var(--shadow-l);
  position: relative; z-index: 1; transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-card.featured p { color: var(--bg-3); }
.pricing-card.featured .pricing-feature { color: var(--bg-2); }
.pricing-card.featured .pricing-feature::before { background: rgba(255,255,255,0.2); }

.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-g); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 980px;
}

.pricing-plan { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: var(--fg-2); }
.pricing-card.featured .pricing-plan { color: rgba(255,255,255,0.6); }

.pricing-price { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 4px; }
.pricing-price span { font-size: 1rem; font-weight: 500; opacity: 0.6; }

.pricing-desc { font-size: 0.9375rem; margin-bottom: 28px; }

.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.15); }

.pricing-features { display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 32px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--fg-2);
}
.pricing-check { color: #30d158; font-weight: 700; flex-shrink: 0; }

.pricing-cta { margin-top: auto; }

.btn-white {
  background: #fff; color: #000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 980px;
  font-size: 0.9375rem; font-weight: 600;
  transition: all 0.2s var(--ease); width: 100%; justify-content: center;
}
.btn-white:hover { background: rgba(255,255,255,0.85); transform: translateY(-2px); }

.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 24px 0;
  font-size: 1.0625rem; font-weight: 600; color: var(--fg);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q span { font-size: 1.25rem; transition: transform 0.3s; color: var(--fg-2); }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 24px; color: var(--fg-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── About ──────────────────────────────────────────────────── */
.about-hero { padding: calc(var(--nav-h) + 80px) 24px 80px; text-align: center; }

.profile-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.profile-img-wrap {
  position: relative;
}
.profile-img {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.profile-initials {
  font-size: 5rem; font-weight: 800; letter-spacing: -0.05em;
  background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.profile-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--accent-g); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-s);
  font-size: 0.875rem; font-weight: 700;
  box-shadow: var(--shadow-m);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tech-tag {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 980px;
  font-size: 0.8125rem; font-weight: 500; color: var(--fg-2);
  transition: all 0.2s;
}
.tech-tag:hover { background: var(--accent); color: #fff; border-color: transparent; transform: translateY(-2px); }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-year { font-size: 0.875rem; font-weight: 700; color: var(--accent); padding-top: 4px; }
.timeline-content h3 { margin-bottom: 6px; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-hero { padding: calc(var(--nav-h) + 80px) 24px 80px; text-align: center; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 20px 24px;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-s);
  background: var(--accent-g); display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,113,227,0.25);
}
.contact-info-item strong { font-size: 0.875rem; font-weight: 700; display: block; margin-bottom: 2px; }
.contact-info-item span { font-size: 0.875rem; color: var(--fg-2); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.875rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 14px 18px;
  font-size: 0.9375rem; font-family: inherit; color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Tech Logos Strip ───────────────────────────────────────── */
.tech-strip { overflow: hidden; padding: 0; position: relative; }
.tech-strip::before, .tech-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.tech-strip::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.tech-strip::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.tech-scroll {
  display: flex; gap: 48px; align-items: center;
  animation: scroll-x 30s linear infinite;
  width: max-content;
}
.tech-scroll:hover { animation-play-state: paused; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 16px 24px;
  font-size: 0.875rem; font-weight: 600; color: var(--fg-2);
  white-space: nowrap; display: flex; align-items: center; gap: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tech-item .ti { font-size: 1.25rem; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--fg); border-radius: var(--radius);
  padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent-g); opacity: 0.06;
}
.cta-banner h2 { color: var(--bg); position: relative; }
.cta-banner p  { color: var(--bg-3); position: relative; max-width: 540px; margin: 16px auto 40px; font-size: 1.0625rem; }
.cta-banner .hero-ctas { position: relative; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 260px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--fg-2); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.875rem; }

/* ── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Highlight ──────────────────────────────────────────────── */
.highlight-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .service-detail, .profile-card, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .timeline-item { grid-template-columns: 80px 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .cta-banner { padding: 48px 24px; }
}
