/* CSS Variables - Attimo Color Palette */
:root {
  /* Primary Colors */
  --dingy-dungeon: #ce364b;
  --granny-smith: #afe89d;
  --linen: #f9efe8;
  --dark-charcoal: #333333;

  /* Text Colors */
  --text-light: #111111;
  --text-dark: #ffffff;

  /* Typography */
  --font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px 0;
  --element-spacing: 2rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--linen);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

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

.logo-svg {
  height: 24px;
  width: auto;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
}

.header-support-link {
  color: #fff;
  text-decoration: none;
  font-weight: var(--font-medium);
}

.header-support-link:hover {
  text-decoration: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--linen);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Background SVG element */
.hero::after {
  content: "";
  position: absolute;
  right: -15vw;
  top: -10vh;
  width: 50vw;
  height: 50vw;
  max-width: 800px;
  max-height: 800px;
  background-image: url("Group 1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Launch badge */
.launch-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.4rem;
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 0.6rem 0.8rem 0.4rem 0.8rem;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: var(--font-regular);
  backdrop-filter: blur(10px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.launch-badge:hover {
  opacity: 1;
  background: rgba(175, 232, 157, 0.1);
  border-color: rgba(175, 232, 157, 0.3);
}

.badge-icon {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Hero copy */
.hero-copy h1 {
  font-size: clamp(3rem, 10vw, 4rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}

.hero-description {
  font-size: 1rem;
  color: var(--dark-charcoal);
  line-height: 1.6;
  max-width: 500px;
}

/* Phone mockup */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #000;
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.phone-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.phone-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.signal-bars {
  display: flex;
  gap: 2px;
  align-items: end;
}

.signal-bars span {
  width: 3px;
  background: var(--text-dark);
  border-radius: 1px;
}

.signal-bars span:nth-child(1) {
  height: 4px;
}
.signal-bars span:nth-child(2) {
  height: 6px;
}
.signal-bars span:nth-child(3) {
  height: 8px;
}
.signal-bars span:nth-child(4) {
  height: 10px;
}

/* Logo showcase */
.logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.attimo-logo-showcase {
  width: 80%;
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo-tagline {
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 180px;
  line-height: 1.3;
}

/* Brand card */
.brand-card {
  background: rgba(175, 232, 157, 0.1);
  border: 1px solid rgba(175, 232, 157, 0.2);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-info h3 {
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.brand-info p {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

.brand-badge {
  position: absolute;
  top: -6px;
  right: 1rem;
  background: var(--granny-smith);
  color: var(--text-light);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: var(--font-medium);
}

/* Stats widget */
.stats-widget {
  background: rgba(206, 54, 75, 0.05);
  border: 1px solid rgba(206, 54, 75, 0.1);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: var(--font-medium);
  color: var(--dingy-dungeon);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

.attimo-logo-mini {
  width: 40px;
  height: 20px;
  background: var(--granny-smith);
  border-radius: 10px;
  position: relative;
}

.attimo-logo-mini::after {
  content: "A°";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
}

/* Values card */
.values-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-icon {
  font-size: 1.2rem;
}

.value-title {
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.value-sub {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Logo widget */
.logo-widget {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linen);
  border-radius: 8px;
  padding: 0.5rem;
}

.attimo-logo-phone {
  width: 100%;
  height: auto;
  max-height: 24px;
}

.logo-title {
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Team Section */
.team {
  padding: 6rem 0 2rem 0;
  background: var(--text-dark);
  position: relative;
}

.team-header {
  text-align: center;
  margin-bottom: 2rem;
}

.team-header h2 {
  font-size: clamp(2rem, 6vw, 2.4rem);
  font-weight: var(--font-medium);
  color: var(--text-light);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.team-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-regular);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(175, 232, 157, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 60px;
  height: 60px;
  background: var(--granny-smith);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}

.avatar-initial {
  font-size: 1.5rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
}

.team-info h3 {
  font-size: 1.3rem;
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.team-info .role {
  color: var(--dingy-dungeon);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-link {
  color: var(--dark-charcoal);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.contact-link:hover {
  background: rgba(175, 232, 157, 0.2);
  color: var(--text-light);
  opacity: 1;
  transform: translateX(2px);
}

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

.team-signature {
  font-size: 1.2rem;
  color: var(--dingy-dungeon);
  font-weight: var(--font-medium);
  font-style: italic;
  margin-bottom: 1rem;
}

.team-message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-regular);
}

/* Contact CTA Section */
.contact-cta {
  background: white;
  padding: 2.5rem 0 3rem 0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.cta-subtitle {
  color: rgba(17, 17, 17, 0.7);
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: black;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: var(--font-medium);
  line-height: 1;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header support link: show as plain text on mobile */
  .header-support-link.cta-button {
    background: transparent;
    color: #000;
    padding: 0;
    border-radius: 0;
    display: inline;
    transition: color 0.2s ease;
    font-weight: bold;
  }
  .header-support-link.cta-button:hover {
    background-color: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .logo-svg {
    height: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    order: 1;
  }

  .hero-right {
    order: 0;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .hero::after {
    width: 70vw;
    height: 70vw;
    right: -25vw;
    top: -15vh;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
  }

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation for phone mockup */
.phone-mockup {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Focus styles for accessibility */
.contact-link:focus {
  outline: 2px solid var(--dingy-dungeon);
  outline-offset: 2px;
}

/* Footer */
.footer {
  background: var(--linen);
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

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

.footer-heading {
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  color: black;
  letter-spacing: 0.01em;
  margin-bottom: 0.1rem;
}

.footer-link {
  color: var(--dark-charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.125rem 0;
  line-height: 1.2;
  display: inline-block;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  color: #000;
  opacity: 1;
}

.footer-support-label {
  font-size: 0.85rem;
  color: black;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.footer-brand,
.footer-contact,
.footer-support,
.footer-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
}

/* Footer group ordering: place brand last under others */
.footer-hours {
  order: 1;
}
.footer-contact {
  order: 2;
}
.footer-support {
  order: 3;
}
.footer-brand {
  order: 4;
}

.footer-hours-text {
  font-size: 0.95rem;
  color: var(--dark-charcoal);
  line-height: 1.2;
}

.footer-contact .footer-link + .footer-link::before {
  content: none;
}

@media (max-width: 768px) {
  .footer-grid {
    gap: 1rem;
  }
  .footer-brand,
  .footer-contact,
  .footer-support,
  .footer-hours {
    flex-wrap: wrap;
  }
}

/* Laptop and up */
@media (min-width: 1024px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1.25rem;
    row-gap: 0;
    align-items: start;
    justify-content: center;
  }

  .footer-grid > * {
    position: relative;
    padding: 0 0.75rem;
  }

  .footer-grid > * + * {
    border-left: 0;
  }

  .footer-contact {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-support {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-brand,
  .footer-contact,
  .footer-support,
  .footer-hours {
    justify-content: flex-start;
  }

  .footer-contact .footer-link + .footer-link::before {
    content: none;
  }

  /* Brand block spans full width below the three columns */
  .footer-brand {
    order: 4;
    flex-basis: 100%;
    grid-column: 1 / -1;
    border-left: 0;
    padding: 0;
    margin-top: 1.5rem;
    text-align: center;
    justify-self: center;
  }

  /* Explicit column placement and alignment */
  .footer-hours {
    grid-column: 1;
    justify-self: end;
  }
  .footer-contact {
    grid-column: 2;
    justify-self: center;
  }
  .footer-support {
    grid-column: 3;
    justify-self: start;
  }
}
