/* DICE-inspired Styles for Vennu Landing Page */

/* Ensure fonts are imported only here */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');

/* Removed Fontshare Clash Display import to use a single provider */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.3;
    color: #000000;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background:#000; color:#fff; z-index:9999; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: inherit;
}

/* DICE-inspired Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

.signup-button-container {
    display: flex;
    align-items: center;
}

.nav-signup-btn {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* DICE-inspired Hero Section */
.hero {
    position: relative;
    padding: 120px 0 40px;
    overflow: hidden;
    background-color: #000000; /* Solid black fallback */
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #ffffff; /* White text for better contrast with video background */
    background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,0.06), rgba(0,0,0,0)) ,
                linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(0,0,0,1) 60%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Fallback background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better text visibility */
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
    background: #000; /* Fallback if video fails */
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    z-index: 2;
    position: relative;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 5rem;
    color: #ffffff;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* Special styling for hero section buttons to ensure visibility */
.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hero signup inline form */
.hero-signup input[type="email"],
.hero-signup input[type="text"] {
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.hero-signup input::placeholder { color: rgba(255,255,255,0.9); }
.hero-signup input:focus { outline: 2px solid #fff; }

/* Hero visual phone mock */
.hero-visual { flex: 1; display: flex; justify-content: center; }
.phone-mock { width: 280px; max-width: 100%; aspect-ratio: 9/19; border-radius: 24px; border: 2px solid rgba(255,255,255,0.15); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.phone-screen { position:absolute; inset:10px; border-radius: 18px; background: linear-gradient(180deg, #101010, #0a0a0a); display:flex; align-items:center; justify-content:center; }
.phone-pulse { font-size: 32px; color: #fff; opacity: 0.9; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity: 0.9;} 50%{ transform: scale(1.08); opacity: 1; } }

/* Real phone image replacements */
.hero-phone-img, .demo-phone-img {
  width: min(360px, 42vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45));
}
.demo-preview-visual { display:flex; justify-content:center; }
.hero-visual { display:flex; justify-content:center; }

/* DICE-inspired Metrics Section */
.metrics {
    padding: 80px 0;
    background-color: #ffffff;
    color: #000000;
}

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

.metrics-header {
    margin-bottom: 40px;
}

.metrics-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.metric-card {
    padding: 24px;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-sublabel {
    font-size: 0.85rem;
    color: #666;
}

.metrics-footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #666;
}

/* Benefits grid tweaks */
#benefits .metrics-grid { gap: 20px; align-items: stretch; }
#benefits .metric-card { display:flex; flex-direction:column; gap:6px; border-color: rgba(255,255,255,0.12); background: #fff; color: #000; }

/* Testimonials */
.testimonials { padding: 60px 0; background:#fff; }
.testimonials-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:24px; }
.testimonial-card { display:flex; gap:16px; padding:20px; border:1px solid rgba(0,0,0,0.1); border-radius: 12px; background:#fafafa; }
.testimonial-card .avatar { width:44px; height:44px; border-radius:50%; background:#000; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.testimonial-content p { margin:0 0 6px; }
.testimonial-content .author { font-size:0.9rem; color:#666; }

/* DICE-inspired Demo Preview Section */
.demo-preview {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.demo-preview-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.demo-preview-text {
    flex: 1;
}

.demo-preview-text h2 {
    margin-bottom: 1.5rem;
}

.demo-features {
    margin: 40px 0;
}

.demo-feature {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.demo-feature-text h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.demo-preview-visual {
    flex: 1;
}

.demo-preview-image {
    position: relative;
}

.demo-phone {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 9/19;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.demo-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Problem/Solution Section */
.problem-solution {
    padding: 80px 0;
    background-color: #ffffff;
}

.problem-solution-content {
    display: flex;
    gap: 60px;
}

.problem-side, .solution-side {
    flex: 1;
}

.problem-side h3, .solution-side h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.problem-item, .solution-item {
    margin-bottom: 1.5rem;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.solution-cta {
    text-align: center;
    margin-top: 60px;
}

.solution-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.founder-quote {
    margin-top: 40px;
    padding: 24px;
    border-left: 4px solid #000;
}

.founder-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: #ffffff;
}

.partners-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.partner-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.benefit h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.partner-cta {
    margin-top: 40px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-text p {
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row input, 
.form-row select {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    font-size: 16px; /* Prevent zoom on iOS */
    width: 100%;
    -webkit-appearance: none; /* Remove default styling on iOS */
    appearance: none;
    border-radius: 0;
}

.contact-form button {
    width: 100%;
    margin-top: 8px;
    min-height: 44px; /* Minimum touch target size */
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: none;
    z-index: 100;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
}

.sticky-cta-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.sticky-cta-subtitle {
    font-size: 0.8rem;
    color: #666;
}

.sticky-cta-button {
    background-color: #000000;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
}

.sticky-cta-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 8px;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Buttons and link states */
.btn { transition: background-color .2s ease, opacity .2s ease, transform .05s ease; }
.btn:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.btn-primary:hover { background:#222; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { color:#000; border-color:#000; }
.btn-secondary:hover { background: rgba(0,0,0,0.06); }

a { outline: none; }
a:focus-visible { outline:3px solid #000; outline-offset:2px; }

/* Mobile layout adjustments */
@media (max-width: 900px) {
  .hero-container { flex-direction: column; gap: 24px; }
  .hero-visual { order: 2; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .hero { padding: 96px 0 24px; }
  .hero-title { font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important; }
  .hero-description { font-size: 0.95rem !important; opacity: .95; }
  .hero-signup { gap: 10px !important; width: 100%; }
  .hero-signup input { flex: 1 1 100%; min-width: 0 !important; border-radius: 12px; padding: 14px; }
  .hero .btn-primary { width: 100%; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
  .hero-phone-img, .demo-phone-img { width: clamp(260px, 84vw, 420px); }
  .testimonials { padding-top: 36px; }
}

/* Mobile-first UX refinements */
@media (max-width: 640px) {
  .hero { padding: 88px 0 20px; }
  .hero-container { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .hero-title { text-transform: none; letter-spacing: -0.02em; }
  .hero-description { max-width: 32ch; margin-left: auto; margin-right: auto; }
  /* One-field quick signup on mobile */
  #heroSignupForm input[name="city"] { display: none; }
  .hero .btn-primary { background: #fff; color: #000; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
  .hero-signup input { border-radius: 12px; padding: 14px; }
  .hero-phone-img { width: clamp(280px, 86vw, 420px); margin-top: 8px; }
}

/* Disable tilt effect on touch devices */
@media (hover: none) and (pointer: coarse) {
  .hero-phone-img { transform: none !important; }
}

/* Gentle fade-in for hero visuals (no motion users respected in JS) */
.hero-phone-img { opacity: 0; transition: opacity .4s ease; }
body.loaded .hero-phone-img { opacity: 1; }

/* Sticky CTA: smooth slide with safe-area */
.mobile-sticky-cta { 
  position: fixed; bottom: 0; left: 0; right: 0; 
  transform: translateY(110%); opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .28s ease; 
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  display: block; /* will be disabled on larger screens */
}
.mobile-sticky-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 769px) { .mobile-sticky-cta { display: none; } }

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-left p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-right a {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-right a:hover {
    opacity: 1;
}

/* Mobile layout adjustments */
@media (max-width: 900px) {
  .hero-container { flex-direction: column; gap: 24px; }
  .hero-visual { order: 2; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .hero { padding: 96px 0 24px; }
  .hero-title { font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important; }
  .hero-description { font-size: 0.95rem !important; opacity: .95; }
  .hero-signup { gap: 10px !important; width: 100%; }
  .hero-signup input { flex: 1 1 100%; min-width: 0 !important; border-radius: 12px; padding: 14px; }
  .hero .btn-primary { width: 100%; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
  .hero-phone-img, .demo-phone-img { width: clamp(260px, 84vw, 420px); }
  .testimonials { padding-top: 36px; }
}

/* Mobile-first UX refinements */
@media (max-width: 640px) {
  .hero { padding: 88px 0 20px; }
  .hero-container { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .hero-title { text-transform: none; letter-spacing: -0.02em; }
  .hero-description { max-width: 32ch; margin-left: auto; margin-right: auto; }
  /* One-field quick signup on mobile */
  #heroSignupForm input[name="city"] { display: none; }
  .hero .btn-primary { background: #fff; color: #000; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
  .hero-signup input { border-radius: 12px; padding: 14px; }
  .hero-phone-img { width: clamp(280px, 86vw, 420px); margin-top: 8px; }
}

/* Disable tilt effect on touch devices */
@media (hover: none) and (pointer: coarse) {
  .hero-phone-img { transform: none !important; }
}

/* Gentle fade-in for hero visuals (no motion users respected in JS) */
.hero-phone-img { opacity: 0; transition: opacity .4s ease; }
body.loaded .hero-phone-img { opacity: 1; }

/* Sticky CTA: smooth slide with safe-area */
.mobile-sticky-cta { 
  position: fixed; bottom: 0; left: 0; right: 0; 
  transform: translateY(110%); opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .28s ease; 
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  display: block; /* will be disabled on larger screens */
}
.mobile-sticky-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 769px) { .mobile-sticky-cta { display: none; } }
