/* ========== APPLE-LIKE PREMIUM AESTHETIC ========== */
:root {
  /* Ultra dark default for premium look */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0c;
  --bg-tertiary: #161618;

  --text-primary: #f5f5f7;
  --text-secondary: #86868b;

  --brand-primary: #2997ff;
  --brand-secondary: #0071e3;
  --brand-gradient: linear-gradient(135deg, #2997ff, #bf5af2);

  --wpp-color: #34c759;

  --glass-bg: rgba(22, 22, 24, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  --nav-height: 100px;

  /* Typography simulating SF Pro using Inter */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;

  --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --brand-primary: #0066cc;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--apple-ease), color 0.4s var(--apple-ease);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 5%;
}

.container-large {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

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

.bg-alt {
  background-color: var(--bg-secondary);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  /* Apple Pill */
  font-size: 17px;
  cursor: pointer;
  border: none;
  font-weight: 400;
  transition: all 0.3s var(--apple-ease);
  text-align: center;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s var(--apple-ease);
}

.light-theme .navbar {
  background: rgba(255, 255, 255, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.nav-links a:not(.btn) {
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

/* ========== HERO SECTION (Ultra Minimal) ========== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 80px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 26px;
  line-height: 1.2;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-mockup-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  perspective: 2000px;
  position: relative;
}

.mockup-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: rotateX(8deg);
  transition: transform 1.2s var(--apple-ease);
  position: relative;
  z-index: 2;
}

.light-theme .mockup-img {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.hero-mockup-wrapper:hover .mockup-img {
  transform: rotateX(0deg);
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: var(--brand-primary);
  filter: blur(120px);
  opacity: 0.15;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.pb-0 {
  padding-bottom: 0 !important;
}

/* ========== COMMON SECTIONS & GLASS CARDS ========== */
.section-padding {
  padding: 140px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.section-title p {
  font-size: 24px;
  color: var(--text-secondary);
}

.glass-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  transition: transform 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
}

.glass-card:hover {
  transform: scale(1.02);
}

/* ========== ABOUT / BENEFITS ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.benefit-card {
  text-align: left;
}

.benefit-card i {
  font-size: 32px;
  background: var(--brand-gradient);
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== PRODUCT HIGHLIGHT ========== */
.badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: inline-block;
}

.product-showcase {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-features {
  list-style: none;
  font-size: 20px;
  line-height: 2;
  margin-bottom: 20px;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
}

.product-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.product-features i {
  color: var(--brand-primary);
  font-size: 16px;
}

/* ========== SERVICES ARRAY ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 60px 40px;
}

.service-card i {
  font-size: 48px;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ========== FLOATING CTA ========== */
.floating-contacts {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--apple-ease);
}

.float-btn:hover {
  transform: scale(1.1);
}

.wpp-btn {
  background: var(--wpp-color);
}

/* ========== FOOTER ========== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-links p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  color: var(--text-secondary);
}

/* ========== APPLE-LIKE ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1.2s var(--apple-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 21px;
    margin-bottom: 40px;
  }

  .section-title h2,
  .cta-glass h2 {
    font-size: 40px;
  }

  .section-title p {
    font-size: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: stretch;
    padding: 0 20px;
  }
}

/* ========== CONTACT FORM ========== */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.custom-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
}

.custom-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s var(--apple-ease);
  outline: none;
}

.custom-form input:focus,
.custom-form textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.light-theme .custom-form input,
.light-theme .custom-form textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .custom-form input:focus,
.light-theme .custom-form textarea:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
}

.msg-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.msg-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

@media (max-width: 900px) {
  .cta-glass {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ========== STATS SECTION ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  padding: 40px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  transition: transform 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-primary);
  opacity: 0.8;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number {
    font-size: 44px;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}