/* 🎨 Guly Landing Page Premium Stylesheet */

/* --- 1. DESIGN SYSTEM & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* HSL Colors */
  --hue-primary: 239; /* Indigo base */
  --hue-accent: 265;  /* Violet base */
  
  --primary: hsl(var(--hue-primary), 75%, 52%); /* Elegant, higher-contrast indigo for light bg */
  --primary-hover: hsl(var(--hue-primary), 75%, 44%);
  --accent: hsl(var(--hue-accent), 72%, 50%); /* Premium vibrant violet */
  
  --bg-dark: #f8fafc; /* Beautiful off-white slate background */
  --bg-darker: #f1f5f9; /* Slate 100 for sectional backgrounds */
  --bg-card: #ffffff; /* Crisp white cards */
  --border-glass: rgba(15, 23, 42, 0.08); /* Delicate dark slate borders instead of white glass */
  
  --text-main: #334155; /* Slate 700 for maximum reading comfort */
  --text-muted: #64748b; /* Slate 500 for secondary details */
  --text-bright: #0f172a; /* Slate 900 for solid dark headings and brand highlights */
  
  /* Font families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout utilities */
  --max-width: 1200px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. BASE RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 3. AMBIENT BACKGROUND GLOWS --- */
body::before, body::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
  filter: blur(120px);
  pointer-events: none;
}

body::before {
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
}

body::after {
  top: 55%;
  right: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
}

/* --- 4. STRUCTURAL WRAPPERS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-bright);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- 5. HEADER & STICKY NAVBAR --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-bright) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-bright);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-darker);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}

/* --- 6. HERO SECTION --- */
.hero {
  padding: 6rem 0 4rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Premium Visual Mockup (pure CSS) */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-bg-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 560px;
  background: #ffffff; /* Clean light screen */
  border: 10px solid #0f172a; /* Premium dark bezels */
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 40px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Internal Mockup UI */
.phone-notch {
  width: 140px;
  height: 20px;
  background: #0f172a;
  margin: 0 auto;
  border-radius: 0 0 15px 15px;
}

.phone-screen {
  flex: 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-widget {
  background: #f8fafc; /* Subtle off-white card for mock screen */
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.8rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.mock-widget-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.mock-activity {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mock-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.tag-delivery {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

.tag-points {
  color: #10b981;
  font-weight: 600;
  font-size: 0.75rem;
}

.mock-pings-list {
  display: flex;
  gap: 0.4rem;
}

.mock-ping {
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 8px;
  font-weight: 500;
}

/* --- 7. FEATURES GRID --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06), 0 0 25px rgba(99, 102, 241, 0.04);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--text-bright);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- 8. CALL TO ACTION SECTION --- */
.cta-section {
  padding: 6rem 0;
  position: relative;
}

.cta-box {
  background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* --- 9. CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- 10. LEGAL PAGES LAYOUT --- */
.legal-wrapper {
  padding: 4rem 0 6rem 0;
  max-width: 850px;
  margin: 0 auto;
}

.legal-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal-meta {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 3.5rem;
  display: block;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* --- 11. FOOTER --- */
.footer {
  margin-top: auto;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-title {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--text-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- 12. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-mockup-wrapper {
    order: -1;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Keep it simple and clean */
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-box {
    padding: 3rem 1.5rem;
  }
  
  .cta-title {
    font-size: 2.2rem;
  }
  
  .legal-content {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
