/* ============================================================
   PLYM — Shared Design System
   "The Architectural Growth Engine"
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- Design Tokens --- */
:root {
  /* Surface hierarchy */
  --surface-lowest:        #0e0e0e;
  --surface-dim:           #131313;
  --surface:               #131313;
  --surface-container-low: #1c1b1b;
  --surface-container:     #201f1f;
  --surface-container-high:#2a2a2a;
  --surface-container-highest: #353534;
  --surface-bright:        #393939;
  --background:            #131313;

  /* Brand */
  --primary:               #67ddfb;
  --primary-container:     #45c1de;
  --primary-fixed:         #adecff;
  --primary-fixed-dim:     #5ed5f3;
  --inverse-primary:       #00687b;
  --on-primary:            #003641;
  --on-primary-container:  #004c5a;

  /* Secondary */
  --secondary:             #b0c9e6;
  --secondary-container:   #314961;
  --on-secondary:          #193249;
  --on-secondary-container:#9fb7d4;

  /* Tertiary (warm accent) */
  --tertiary:              #ffc190;
  --tertiary-container:    #f69e4f;
  --on-tertiary:           #4d2700;

  /* Text */
  --on-surface:            #e5e2e1;
  --on-surface-variant:    #bcc9cd;
  --on-background:         #e5e2e1;

  /* Borders */
  --outline:               #879397;
  --outline-variant:       #3d494c;

  /* Radius */
  --radius-sm:  0.125rem;
  --radius-md:  0.375rem;
  --radius-lg:  0.5rem;
  --radius-xl:  0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Material Symbols defaults */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
}

/* ============================================================
   NAVIGATION — Glassmorphism Navbar
   ============================================================ */
.plym-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(19, 19, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 73, 76, 0.2);
}

.plym-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo */
.plym-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.plym-nav__logo img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.plym-nav__logo span {
  color: var(--primary);
}

/* Desktop Links */
.plym-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.plym-nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  transition: color 0.2s;
}
.plym-nav__links a:hover { color: #fff; }
.plym-nav__links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* CTA Button — Modern Minimalist */
.plym-nav__cta {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.8rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 9999px;
  cursor: pointer;
  min-height: 44px; /* Premium touch target */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plym-nav__cta:hover { 
  border-color: var(--primary);
  background: rgba(103, 221, 251, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(103, 221, 251, 0.1);
}
.plym-nav__cta:active { transform: translateY(0); }

/* Hamburger Button */
.plym-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.plym-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu Overlay */
.plym-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.plym-mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.plym-mobile-menu a {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem;
  display: block;
  text-align: center;
}
.plym-mobile-menu a:hover,
.plym-mobile-menu a.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.plym-mobile-menu__cta {
  margin-top: 1.5rem;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.8rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plym-mobile-menu__cta:hover {
  border-color: var(--primary);
  background: rgba(103, 221, 251, 0.05);
}

.plym-mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s, color 0.2s;
  padding: 1rem; /* large touch target */
}
.plym-mobile-menu__close:hover {
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}

/* Hamburger — open state */
.plym-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.plym-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.plym-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.plym-footer {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(61, 73, 76, 0.2);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.plym-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.plym-footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.plym-footer__brand-logo img {
  height: 60px;
  width: auto;
}

.plym-footer__brand-tagline {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  max-width: 22ch;
}

.plym-footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.plym-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.plym-footer__links a {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s;
}
.plym-footer__links a:hover { color: var(--primary); }

.plym-footer__bottom {
  max-width: 1440px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(61, 73, 76, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.plym-footer__copyright {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em;
}

.plym-footer__social {
  display: flex;
  gap: 1.25rem;
}
.plym-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.plym-footer__social a:hover { color: var(--primary); }

.plym-footer__social a svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.plym-footer__social a:hover svg {
  transform: translateY(-2px) scale(1.1);
}
/* Floating Animation */
@keyframes plym-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: plym-float 3s ease-in-out infinite;
}

/* Slow Bounce */
@keyframes plym-bounce-slow {
  0%, 100% { transform: translateY(-5%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce-slow {
  animation: plym-bounce-slow 2s infinite;
}
/* Orb Animations */
@keyframes plym-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.2); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes plym-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.3); }
  66% { transform: translate(30px, -20px) scale(0.8); }
  100% { transform: translate(0, 0) scale(1); }
}
.animate-orb-1 { animation: plym-orb-1 12s ease-in-out infinite; }
.animate-orb-2 { animation: plym-orb-2 15s ease-in-out infinite; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Gradient text (cyan) */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary CTA button — Modern Minimalist */
.btn-primary {
  background: transparent;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 9999px;
  cursor: pointer;
  min-height: 44px; /* Premium touch target */
  padding: 0.8rem 2rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  border-color: var(--primary);
  background: rgba(103, 221, 251, 0.08); /* slightly higher alpha */
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(103, 221, 251, 0.2);
}
.btn-primary:active { transform: translateY(0); }

/* Primary Large CTA — Used for main conversions */
.btn-primary-lg {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 52px;
}
.btn-primary-lg:hover { 
  border-color: var(--primary);
  background: rgba(103, 221, 251, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(103, 221, 251, 0.15);
}
.btn-primary-lg:active { transform: scale(0.98); }

/* Ghost / outline button */
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* Text glow effect */
.text-glow {
  text-shadow: 0 0 24px rgba(103, 221, 251, 0.35);
}

/* Overline label */
.overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Section spacings */
.section-py { padding-top: 6rem; padding-bottom: 6rem; }
.section-py-lg { padding-top: 8rem; padding-bottom: 8rem; }

/* Grid dot background */
.bg-grid {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
  animation: plym-grid-move 20s linear infinite;
}

/* Glassmorphism effect */
.glass {
  background: rgba(49, 73, 97, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 768px) {
  .plym-nav__links { display: none; }
  .plym-nav .plym-nav__cta { display: none; }
  .plym-nav__hamburger { display: flex; }

  .plym-nav__inner { padding: 1rem 1.25rem; }

  .plym-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .plym-footer__brand {
    grid-column: 1 / -1;
  }

  .section-py    { padding-top: 4rem; padding-bottom: 4rem; }
  .section-py-lg { padding-top: 5rem; padding-bottom: 5rem; }

  /* Mobile CTA Adjustments */
  .plym-nav__cta,
  .btn-primary,
  .btn-primary-lg {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    min-height: 46px;
    border-radius: 9999px;
  }

  .plym-nav__cta,
  .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: transparent;
  }

  .btn-primary-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    min-height: 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff;
  }
  .plym-mobile-menu__cta {
    padding: 0.8rem 2rem;
    font-size: 0.8125rem;
    min-height: 44px;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .plym-footer__inner {
    grid-template-columns: 1fr;
  }
  .plym-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   SEGMENTS ANIMATION support
   ============================================================ */
.plym-segments {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .plym-segments {
    font-size: 2.25rem; /* Increased size as requested */
  }
}
.typing-segment {
  border-right: 2px solid var(--primary);
  padding-right: 5px;
  animation: plym-cursor 1.5s ease-in-out infinite;
}
@keyframes plym-cursor {
  0%, 100% { border-color: var(--primary) }
  50% { border-color: transparent }
}

/* ============================================================
   MOBILE MENU SCRIPT SUPPORT
   ============================================================ */
body.menu-open { overflow: hidden; }
/* ============================================================
   PHONE MOCKUP COMPONENT
   ============================================================ */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background: #000;
  border: 10px solid #1a1a1a;
  border-radius: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(103, 221, 251, 0.1);
  overflow: hidden;
  margin: 0 auto;
}

/* Notch effect */
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1a1a1a;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #000;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.phone-screen::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PREMIUM INTERACTIONS & FORMS
   ============================================================ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary), 0 0 15px rgba(103, 221, 251, 0.15);
  transform: translateY(-1px);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
