/* ==========================================================================
   FIDGITAL — SPLIT VIEWPORT LANDING PAGE
   ========================================================================== */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --bg-dark: #0a0c14;
  --color-orange: #f07810;
  --color-blue: #1aa0ec;

  --text-primary: #ffffff;
  --text-secondary: #e0e6ed;
  --text-muted: #94a3b8;

  --card-bg: rgba(18, 22, 34, 0.85);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.55;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Solid Background */
.color-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 0;
  pointer-events: none;
}

/* Split Viewport Layout Container */
.viewport-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  height: 100vh;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.25rem 0;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  height: 1.6rem;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: #ffffff;
  line-height: 1;
}

/* Main Split Grid */
.main-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: auto 0;
  width: 100%;
}

/* Left Boxes Column */
.left-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* HERO CARD */
.hero-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-blue);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.35;
  color: var(--text-secondary);
}

.hero-description {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: #cbd5e1;
}

/* ACTIONS GRID */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.action-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.25;
}

.card-loop .card-title {
  color: var(--color-blue);
}

.card-cocreate .card-title {
  color: var(--color-orange);
}

.card-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* SIGNUP FORM */
.signup-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.input-box {
  flex: 1;
}

#email-input,
#mce-EMAIL {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#email-input:focus,
#mce-EMAIL:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 12px rgba(26, 160, 236, 0.35);
}

.btn-signup {
  background-color: var(--color-blue);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px rgba(26, 160, 236, 0.35);
}

.btn-signup:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.micro-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* GOOGLE FORM BUTTON */
.action-container {
  width: 100%;
}

.btn-google-form {
  width: 100%;
  background-color: var(--color-orange);
  border: none;
  color: #090b10;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 15px rgba(240, 120, 16, 0.35);
}

.btn-google-form:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(240, 120, 16, 0.45);
}

/* RIGHT PANEL & IMAGE MATCHING LEFT BOXES HEIGHT */
.right-panel {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.image-card {
  width: 100%;
  height: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
  display: flex;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* FOOTER ALIGNED TO BOTTOM RIGHT */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 100%;
}

.copyright-text {
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* MODAL FEEDBACK POPUP */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: rgba(18, 22, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-textarea {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--color-orange);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary-action {
  background-color: var(--color-orange);
  color: #090b10;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-primary-action:hover {
  filter: brightness(1.1);
}

.btn-secondary-link {
  color: var(--color-blue);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: rgba(18, 22, 34, 0.95);
  border: 1px solid var(--color-blue);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive / Mobile layout */
@media (max-width: 960px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  .viewport-wrapper {
    height: auto;
    min-height: 100vh;
    padding: 1.25rem 1rem;
  }
  .main-split {
    grid-template-columns: 1fr;
  }
  .right-panel {
    height: 380px;
    min-height: 280px;
  }
  .actions-grid {
    grid-template-columns: 1fr;
  }
}
